GeezerVison is showing github.com — heavy facts (D6): leftovers from the #786 reviews · Issue #800 · scuttletoby/t3code
heavy facts (D6): leftovers from the #786 reviews #800DescriptionLeftovers from the two reviews of #786 (heavy facts, D6), not fixed in its fix round:
lens A #786 (comment) and
lens B #786 (comment).
- A job owes its kind's cost, not heavy's own reservation for it (lens A 1, lens B 1 "related"). A ticket's
mb (heavy's --mb or its learned peak for that kind) is only read for job-server. A job of a kind the rule does not know owes job-default's cost, even when heavy learned a much higher peak for that kind. Fixing this means a change to the shared rule (a per-piece cost floor) in both the TypeScript and the Python evaluator, plus vectors. For now it is stated in the kit README and in heavy_facts.py.
- Other users' reservations are not seen (lens A 4). Other users' heavy jobs and agent scopes are now counted from the cgroups, but each user's
reserve.d stays private. This is stated in the README.
- Strict agent-scope matching (lens A 6). An escaped scope label, or agents under a slice not named
app-t3code*, give 0 agents. Add a note when scopes are found outside the pattern, or count any *.scope under the agents slice.
- Test-only environment hooks are read in production paths (lens A 9):
HEAVY_FACTS_ROOT, AGENT_SLOTS_ALIVE, T3_CAPACITY_HEAVY, AGENT_SLOTS_HEAVY. Honour them only when a test flag is also set.
- The module loader is copied 4 times (lens B 8):
heavy_facts.py, t3-capacity, agent-slots and the tests. It is how each file finds the kit before anything is loaded, so one shared copy needs a small bootstrapping change.
- Some rule numbers are held in one direction only (lens B 9). For example,
margin.minMb ±1, jobCoresPercent +1 and calm.* +1 change no vector. Add vectors so each number goes red in both directions.
- A backwards clock jump drops the pressure carry (lens A 8, noted as acceptable). Recorded here only.
Recommendation: do item 1 first, because it is the only one that can make a "fits" too large. Items 3 and 4 are small; the others can wait. Activityscuttletoby commented on Nov 21, 2026 Orchestrator check of the #786 fix round (6bdf78d): OK to merge. One more item for this list: the basic tier is now never free. That is the safe choice, but a machine without a systemd user manager (for example a WSL distro without systemd, or a CI user with no lingering session) will always get "not free" from heavy facts. Check this before the PC agents work relies on heavy facts there. (The machine-wide t3-capacity that CI calls today is a separate script and is not changed by #786.)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|