Skip to content

skills: measuring-performance's habit sends a duration to wall time, which its rule forbids #2361

Done

Description

@OmarAlJarrah

Problem

morphic-measuring-performance gives two answers for a duration, and its entry page gives the wrong one. SKILL.md's Habits say:

A test pins cost by counting work; wall time belongs in a PR body, taken back to back.

references/finding-cost.md#quote-a-duration-as-instructions-and-rate, added for #2078, says:

Quote an absolute duration or timeout budget as instructions retired and the machine's measured rate on a quiet run ... State a figure below a timeout as an estimate from those two, never a raw wall-clock reading.

The claim-to-measure table has no row for a duration or a timeout budget, and nothing outside the rule's own file cites it:

$ grep -rln 'quote-a-duration-as-instructions-and-rate' .claude docs CLAUDE.md CONTRIBUTING.md AGENTS.md
.claude/skills/morphic-measuring-performance/references/finding-cost.md

#2078 named this habit line as the gap. Its fix (#2293) added the rule but left the line as it was and routed nothing to the rule. A reader who sizes a go test -timeout or projects CI time from the skill's entry page therefore projects from wall time. During #2354's work, wall time on a loaded machine put one package at 467 s, while the instruction counts of the runs compared agreed (1846.4 G and 1846.3 G).

Direction

A draft:

  • Add a table row: "an absolute duration or a timeout budget | instructions retired and the quiet rate, with the load at both ends (references/finding-cost.md#quote-a-duration-as-instructions-and-rate)".
  • Narrow the habit line to what it is for, two runs compared back to back, or point it at the rule.
  • Consider naming a timeout or a CI-time estimate in the skill's description, so that a change to a Makefile or gate.yml timeout loads it.

Out of scope

Changing any timeout. The rule's own text.

Related: #2078, #2293

Priority: P4, rule 1 (housekeeping): a skills change that alters no lowering, validation, IR or emit-contract behaviour. The grep -rln above → the rule's file alone; grep -n 'wall time' .claude/skills/morphic-measuring-performance/SKILL.md → line 31 (morphic @4a7a384c9).

Activity

  1. added
    type:bug
    priority:P4
    on Nov 29, 2026
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

    priority:P4type:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions