Skip to content

heavy: t3-capacity from one source (the kit), not a consumer's copy #919

Done

Description

@scuttletoby

t3-capacity should have one source: the kit's fork-kit/heavy/bin/t3-capacity.

Found: on a machine set up by a consumer project's sandbox installer, /usr/local/bin/t3-capacity is a plain copy written by that installer, while heavy-install links only heavy and heavy-install. So installing a newer heavy kit (for example #823's swap counting, #917's hold fixes) does not change what t3-capacity does there; the two copies drift.

Plan:

  1. heavy-install also links t3-capacity to the installed kit's bin/t3-capacity (refusing to replace a file it did not write unless told, keeping the old one in replaced/ like heavy). Test: install, then the command resolves to the kit release; run again: no change; old plain copy present: kept and replaced as documented.
  2. Consumer installers stop copying t3-capacity and call heavy-install (or check the link) instead. That part is in the consumer's own repo.
  3. heavy --self-check (or the kit's self-check) warns when t3-capacity on PATH is not the kit's.

State question: runs again (no change), stops half-way (old copy kept until the link is in place, then swapped atomically), old state (a plain copy from before: replaced and kept in replaced/).

🤖 Generated with Claude Code

Activity

  1. scuttletoby commented on Nov 22, 2026

    @scuttletoby
    OwnerAuthor

    Found while installing heavy from ci/v22 on a machine with a consumer's plain t3-capacity copy: for the same request the kit's own bin/t3-capacity reports reserved=3101MB ... level=ok while the consumer copy reports reserved=0MB. So switching the command on PATH to the kit's copy (step 1 of this issue) changes what agents see: the kit's copy counts reservations the old copy ignores. The PR for this issue should say that in its body and show before/after readings on one machine.

    🤖 Generated with Claude Code

  2. scuttletoby commented on Nov 27, 2026

    @scuttletoby
    OwnerAuthor

    Done in #922 (steps 1 and 3). Step 2 belongs to the consumer repo; leftovers are in #933 and #944.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions