Skip to content

Make the measurement loop installable in two commands - #3

Merged
ElliotJLT merged 1 commit into
mainfrom
fix/workable
Sep 17, 2026
Merged

ElliotJLT merged 1 commit into
mainfrom
fix/workable

Conversation

@ElliotJLT

Copy link
Copy Markdown
Owner

Until now the hooks were a hand-merge into ~/.claude/settings.json, documented
as a JSON block. That is the step most people skip, and skipping it means the
skill's calibration section stays empty forever with no error to say why.

  • dog.py install-hooks: merges the three event hooks into settings.json,
    preserves every other setting and hook, writes a .dog-years.bak first, and
    is idempotent - re-running updates the path of a moved install instead of
    duplicating the entry. uninstall-hooks reverses it. DOG_YEARS_SETTINGS
    overrides the target file.
  • doctor now checks hook registration first: missing, partial, or pointing at
    a dog.py that no longer exists, with the exact command to fix each.
  • Tests cover install/uninstall: preserved settings, existing hooks on the
    same event kept, unrelated events untouched, one entry per event after two
    installs, backup written, doctor sees them, uninstall removes only ours.
  • Every experiment script takes MODEL=; when it is not the saved Haiku
    model the results dir is tagged with the model name so a re-run lands
    beside the published data, not over it.
  • SKILL.md cites AgentTime (Aug 2026) as the measured basis for the rule,
    research.md's known-limits section does the same and names the one-line
    way to re-run the effort null on a larger model. README and measurement.md
    now lead with the two commands.

Verified: npx skills add installs SKILL.md, EVAL.md and dog.py byte-identical
to the repo into a clean HOME; tests pass; all scripts parse; the published
v3 figures still reproduce.

Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com

Until now the hooks were a hand-merge into ~/.claude/settings.json, documented
as a JSON block. That is the step most people skip, and skipping it means the
skill's calibration section stays empty forever with no error to say why.

- dog.py install-hooks: merges the three event hooks into settings.json,
  preserves every other setting and hook, writes a .dog-years.bak first, and
  is idempotent - re-running updates the path of a moved install instead of
  duplicating the entry. uninstall-hooks reverses it. DOG_YEARS_SETTINGS
  overrides the target file.
- doctor now checks hook registration first: missing, partial, or pointing at
  a dog.py that no longer exists, with the exact command to fix each.
- Tests cover install/uninstall: preserved settings, existing hooks on the
  same event kept, unrelated events untouched, one entry per event after two
  installs, backup written, doctor sees them, uninstall removes only ours.
- Every experiment script takes MODEL=<id>; when it is not the saved Haiku
  model the results dir is tagged with the model name so a re-run lands
  beside the published data, not over it.
- SKILL.md cites AgentTime (Aug 2026) as the measured basis for the rule,
  research.md's known-limits section does the same and names the one-line
  way to re-run the effort null on a larger model. README and measurement.md
  now lead with the two commands.

Verified: npx skills add installs SKILL.md, EVAL.md and dog.py byte-identical
to the repo into a clean HOME; tests pass; all scripts parse; the published
v3 figures still reproduce.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@ElliotJLT
ElliotJLT merged commit d9b600a into main Sep 17, 2026
1 check passed
@ElliotJLT
ElliotJLT deleted the fix/workable branch September 17, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant