Skip to content

Preserve rate units and reject invalid capacity counts - #93

Merged
ralyodio merged 2 commits into
profullstack:masterfrom
SummusStuprator:codex/capacity-rate-units
Sep 12, 2026
Merged

Preserve rate units and reject invalid capacity counts#93
ralyodio merged 2 commits into
profullstack:masterfrom
SummusStuprator:codex/capacity-rate-units

Conversation

@SummusStuprator

Copy link
Copy Markdown
Contributor

Capacity summaries currently advertise $100/day as $100/hr, and interpret -2 or 2.5 agents as a positive whole agent count. Those values feed the derived hourly total shown to employers.

Two separate commits keep the parsed summary from inventing that information:

  • Recognize explicit non-hourly units (time periods and task/project prices) and leave the hourly rate unstated. The agent count still displays with “rate on request”; the original resume remains unchanged. Existing hourly and implicit-hourly inputs retain their behavior.
  • Parse the sign and decimal portion of a count before requiring a positive whole number. Supported prose such as “up to 10” and comma-grouped counts continues to work.

Validation: both failures reproduced before fixing; four new tests cover rejected and retained values, including parseCapacity/formatCapacity integration. TypeScript build and 25 focused capacity tests pass. Prepared by an AI coding assistant with the account owner's authorization; no live data used.

@ralyodio
ralyodio merged commit 2e00d9f into profullstack:master Sep 12, 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