utils/earned_time/earned_time
Krzysztof kuhy Rudnicki c06f2daa9a
Some checks failed
file length / file-length (push) Waiting to run
kuhy_credit drift / drift (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
earned_time pre-commit / pre-commit (push) Has been cancelled
earned_time tests / test (push) Has been cancelled
gatelock tests / test (push) Has been cancelled
Export term_for: one derivation of a term
term_for(earner, day, *, answer, progress=None) returns the Term an
earner pays: the ladder rung, the share of a row, the full-pay cap and
the review's dated rule. resolve builds every term through it, so a
consumer pricing one earner cannot disagree with resolve and never
re-derives a share.

A grid test pins term_for == resolve's term for every earner, answer,
row and day either side of REVIEW_PROGRESS_FROM, and a second test
checks the minutes against the written rules, not the library code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZLyjnLjB1THD6ckou
2026-11-22 18:55:54 +01:00
..
tests Export term_for: one derivation of a term 2026-11-22 18:55:54 +01:00
__init__.py Export term_for: one derivation of a term 2026-11-22 18:55:54 +01:00
__main__.py earned_time 0.6.0: gate maturity classifier (python -m earned_time maturity), confirmed_on, first_credits-aware penalty start 2026-10-09 21:21:18 +02:00
_cli.py earned_time 0.19.0: focus project earner 2026-11-02 08:23:50 +01:00
_credits.py earned_time 0.18.0: a LeetCode bonus needs the day paid in full; gate_off lets one solve earn on a stood-down day 2026-10-24 13:13:23 +02:00
_evidence.py earned_time 0.6.0: gate maturity classifier (python -m earned_time maturity), confirmed_on, first_credits-aware penalty start 2026-10-09 21:21:18 +02:00
_floor.py Pay partial progress in earned_time 0.24.0 2026-11-22 18:24:22 +01:00
_focus.py Pay partial progress in earned_time 0.24.0 2026-11-22 18:24:22 +01:00
_gaming.py earned_time 0.22.0: gaming budget switch off 2026-11-16 15:57:14 +01:00
_ladder.py Pay the review by its row from 2026-11-24 2026-11-22 18:50:09 +01:00
_ledger.py earned_time: add the LeetCode review top-up 2026-11-21 22:09:35 +01:00
_leisure.py earned_time 0.22.0: gaming budget switch off 2026-11-16 15:57:14 +01:00
_match.py earned_time 0.19.0: focus project earner 2026-11-02 08:23:50 +01:00
_maturity.py earned_time: add the LeetCode review top-up 2026-11-21 22:09:35 +01:00
_policy.py Pay partial progress in earned_time 0.24.0 2026-11-22 18:24:22 +01:00
_progress.py Read progress from the last good row 2026-11-22 18:44:20 +01:00
_quota.py earned_time 0.10.0: tutor quota per weekday (15 min Tue-Thu, 30 Mon/Fri, 50 Sat/Sun for the full 60) 2026-10-12 21:07:03 +02:00
_registry.py earned_time: add the LeetCode review top-up 2026-11-21 22:09:35 +01:00
_resolution.py Pay partial progress in earned_time 0.24.0 2026-11-22 18:24:22 +01:00
_resolve.py Export term_for: one derivation of a term 2026-11-22 18:55:54 +01:00
_review.py Pay partial progress in earned_time 0.24.0 2026-11-22 18:24:22 +01:00
_share.py Export term_for: one derivation of a term 2026-11-22 18:55:54 +01:00
_sick.py earned_time: add the LeetCode review top-up 2026-11-21 22:09:35 +01:00