Skip to content

GAPS.md §3.2 (Reductions) is stale from before #6 landed #65

Closed

Description

@feitreim

Noticed by #3's agent, correctly left alone as out of scope.

GAPS.md §3.2 still reads "Missing: everything column-wise, prod, min, generic row_reduce". All of that landed with #6: row_reduce/col_reduce/tile_reduce are generic over ReduceOp, and the op set covers the named ones.

Why this is worth a ticket rather than a drive-by

GAPS.md is the document that tells the next person what does not exist. A stale "missing" entry is worse than a missing one: it costs someone a re-implementation of something that shipped, and it is exactly the failure mode the ::gaps entrypoint was built to prevent for the examples. Nothing plays that role for GAPS.md itself.

Three separate agents have now flagged stale numbers or claims in repo docs (lane_probe's register table — three cells, fixed in #60; GAPS.md's test counts — fixed in #59; three expired Element claims — fixed in #3). Each was found incidentally by someone working nearby. That is not a process.

Scope

  1. Fix §3.2 against what src/reg.rs actually exports today.
  2. Audit the rest of GAPS.md the same way — every "missing" or "wanted" claim checked against the current source, not against memory. Several sections predate Generic map mechanism and the standard elementwise op set #5, Reductions: column-wise, whole-tile, and a generic reduce #6, Masking and shape utilities: make_causal, tril/triu, fills, transpose #7, Direct global to/from register load and store #11, Shared vectors, and ops on shared tiles #13, Shared to register load: the missing half of ldst #21, Movers work in [16,16] blocks; every kernel rewrites the same composition loop #22, RegTile's shape set is closed to out-of-tree kernels #23, SwizzledChunks cannot span stacked subtiles: only 64-wide bf16 tiles have a register<->shared path #25, The map mechanism needs in-place variants: by-value costs 87 registers at 128 columns #31 and Scalar-operand maps: scale, shift, and the ops #5 listed but did not ship #38.
  3. Where a claim is a count (tests, device cases, lines), either re-measure it or stop quoting a number that has to be maintained. Global to and from registers, with no descriptor in the way (#11) #59 already had to fix "19 unit tests" → 73 and "four paths" → five; those drift every PR.
  4. Consider whether any of it can be checked rather than asserted. A doctest, a test that asserts an exported symbol exists, or a note pointing at ::gaps beats prose that nobody re-reads. Prose that cannot be checked should at least be dated.

Not urgent, and deliberately a cleanup task rather than an API one — but it should be done by someone who reads the source rather than the git log, since the point is to catch claims no commit message contradicts.

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

    area:scaffolding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions