agentleFS
KohulanKohulan/orthonym-skills/skills/change-asserted-value/SKILL.md

change-asserted-value

Skill2 starsChanged 44 days agoMITView on GitHub

Requires three artifacts before a committed expected value moves (a primary-source quote, an independent check that does not use the code under test, and a mutation test) and records anything weaker as unverified. Use when a change would alter a golden file, snapshot, asserted label, reference output, or benchmark expectation, including when the new value looks obviously right or the old one looks obviously wrong. Triggers on updating a failing assertion to match current output, 'the test expectation is stale', or a fix that moves reference data. Not for writing new tests (use test-gate).

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add a comment at the assertion marking it unverified and recording what it rests on.

    line 64
  2. Distinctive:

    Write the open item somewhere durable, with the check that would settle it.

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

change-asserted-value

The rule

Three artifacts before the value moves. If you cannot produce all three, the new value is unverified: change it only with the labels under "When you only have weak evidence" below.

Updating an assertion to match new output is the single easiest way to convert a bug into a specification.

The three artifacts

  1. A primary-source result. A verbatim quote fixing the correct value, or an explicit finding that the source is silent on it. Use verify-source.
  2. An independent check that does not use the code under test. A necessary-condition property (prove-invariant), an internal-consistency argument, or a separate implementation. Re-deriving the value by hand from the same reasoning that produced the change does not count.
  3. A mutation test. On a scratch copy (see test-gate), revert the fix and confirm the test fails. If it still passes, the test cannot see the change: tighten it and repeat.

Then state, in one line: what would make this wrong?

Many values at once (a snapshot or golden-file regeneration): list every old → new pair first, then apply the three artifacts to each. Optional guard: the opt-in guard-regen hook (hooks/guard-regen.py in this plugin; setup in hooks/README.md) stops a bulk snapshot or golden-file regeneration until each changed value is listed.

Why this exists

Nine reference values were changed in one piece of work. Six were confirmed by an independent property — the originals were provably impossible. Three were not: the property was blind to them, and they rested only on a geometric argument.

The difference mattered. Reporting all nine as "verified" would have been false; recording three as reasoning-only kept the claim honest and left a checkable item behind. One supporting argument turned out to be wrong on inspection and had to be retracted — which is exactly the outcome this checklist is designed to surface before the change ships, not after.

Grading your evidence

EvidenceStrength
Worked example from the specificationDecisive
Necessary-condition property the old value violatedDecisive — the old value was impossible
Internal consistency (two inputs that must agree, didn't)Strong
Independent reimplementation agreesStrong
Necessary-condition property that passes both before and afterNone — it cannot adjudicate
Your own re-derivation from the same reasoningWeak — record as unverified
"The new output looks more sensible"Not evidence

When you only have weak evidence

Ship the change with honest labels, if the reasoning is sound:

  • Say in the commit message which values are machine-confirmed and which are unverified.
  • Add a comment at the assertion marking it unverified and recording what it rests on.
  • Write the open item somewhere durable, with the check that would settle it.
  • In every summary, describe reasoning-backed values as unverified.

Red flags

ThoughtReality
"The test is just stale"Tests do not go stale on their own. Something changed; find out what.
"Obviously the old value was wrong"Prove it. "Impossible" is provable; "wrong-looking" is not.
"The reference implementation produces this"So did the old value.
"I derived it carefully"Careful derivation is what artifact 2 exists to check.
"It's only a sign / a symbol / a unit (e.g. a chirality label)"Those are the errors that survive longest, because everything still parses.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.