Skip to content

feat: add a Firstmate skill for sustained metric improvement - #328

Merged
dnth merged 4 commits into
mainfrom
fm/fm-hillclimb-skill
Nov 24, 2026
Merged

dnth merged 4 commits into
mainfrom
fm/fm-hillclimb-skill

Conversation

@dnth

@dnth dnth commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds one agent-only skill that makes metric-improvement work a measured experiment loop, plus its three registration lines.

.agents/skills/hillclimb/
└── SKILL.md                  # new agent-only skill
    ├── When a hillclimb fits  one metric + target; excludes one-off fixes and leaking designs
    ├── Set-up                 reproducing case, metric and direction, target + minimum attempts
    ├── Freeze the harness     median of N, error count, work count, dual-corpus guard
    ├── The attempt loop       one mechanism per attempt; keep only past noise with a green gate
    ├── Preserve every attempt hc/<id>/<n> experiment refs; forward revert only
    ├── Keep the decision log  data/<id>/decision.tsv, one row per completed attempt
    ├── Plateau and stop       pivot or stop; the rule is fixed at set-up
    ├── Running in Firstmate   parallel hypotheses as separate workers; normal delivery
    └── Brief section          paste-ready metric, rules, commands, and log path
.agents/skills/agent-skill-trigger-index/SKILL.md   # trigger line
docs/documentation-audiences.json                   # agent-runtime entry
AGENTS.md                                           # one intake line

Ideas are adapted from the Poteto hillclimb playbook, credited once in the skill; the unlicensed source text is not copied.

Evidence

  • Before: .agents/skills/hillclimb/SKILL.md did not exist, and neither the trigger index nor the documentation inventory had a hillclimb entry.
    After: bash bin/fm-doc-audience-check.sh prints ok surfaces=105 local_links=551 (ran), and pinned [email protected] with the CI rule set reports 0 issues in 3 files (ran).
  • Before: the source playbook text had no comparison target in this repo.
    After: hillclimb-skill-check.py reports all frontmatter, idea, and template checks passing with 0 shared word runs of length 7-10 against the source (ran); artifact data/fm-hillclimb-skill/artifacts/hillclimb-skill-check.txt.
  • bash tests/fm-documentation-audiences.test.sh reports 4 of 4 checks ok (ran), covering classification, setup routing, owner pointers, and local links.
  • The trigger-index line and the skill description state the same load condition: before scoping, briefing, or executing a task whose goal is sustained improvement of one measurable metric toward a target.

Checks

20 of 20 checks pass at this head, including Behavior tests (Herdr), which failed once and passed on a single job rerun.

The three pre-existing failures from the earlier base (Behavior portable serial 2, Behavior portable serial 6, and Herdr) are gone after the rebase onto current main.

Merge Danger

Door: two-way. This is prose and classification only; reverting the four files restores the prior behavior.

Blast Radius: agent guidance only.

The only runtime-adjacent effect is one intake sentence in AGENTS.md that routes metric campaigns to the new skill; no executable code, state, or data path changes.

Live-test findings deferred (small local models skipped acceptance safeguards)

Runtime enforcement is outside the approved skill-only scope, so these live-test findings are deferred, not fixed, and will be judged after the kunchenguid#1042 pilot.

  • hillclimb-live-tree-and-measurement-verification - A local Pi worker accepted measurements from an uncommitted tree under the delivery SHA and left a valid candidate off the branch.
  • hillclimb-live-handoff-and-log-ownership - A scout declared completion while still on its experiment branch, and scout and delivery workers wrote the supervisor-owned decision log.
  • test-3 - The first live verdict was a no-go: 9 of 9 synthetic scenarios failed (auto-fix parked).
  • test-4 - A delivery worker recorded acceptance without advancing, skipped stale replay, and misread workload and corpus evidence.
  • test-5 - A scout reported done while still on its experiment branch and omitted the commit SHA.
  • test-6 - All five local delivery workers wrote to the supervisor-owned decision log.
  • test-7 - With Qwen3-30B, three invalid candidates were recorded as kept and none reached delivery.
  • test-8 - A worker claimed it fast-forwarded the valid candidate while the delivery ref stayed at the prior commit.
  • test-9 - With Qwen3-8B, stale and invalid candidates were merged; the intended dispatch profile was not credentialed.
  • hillclimb-experiment-ref-deleted-before-custody - One trial deleted the ref holding a rejected candidate and recreated it at the delivery tip, losing the original commit.
  • test-2 - The extra live round was also a no-go: 9 of 9 synthetic scenarios failed (auto-fix parked).

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

🔧 **Test** - 1 issue found → no changes applied ✅
  • 🚨 live validation verdict: no-go (5 of 5 scenarios were driven live against the product); failed: Give local Firstmate a sustained synthetic latency target and receive a report-only scout brief and a local-only delivery brief, Give a local Pi worker a valid synthetic 84 ms candidate and see delivery advance to the exact measured commit, Give a local Pi worker a faster synthetic candidate that drops one request and see it reject the candidate and preserve its ref
  • Live validation: ❌ no-go - 5 of 5 scenarios driven live against the product
Scenario Result Live Evidence
List skills from the local Firstmate archive and see public stow while hillclimb stays out of default installer discovery ✅ pass live Local installer discovery and Pi command listing
Give local Firstmate a sustained synthetic latency target and receive a report-only scout brief and a local-only delivery brief ❌ fail live Sustained latency intake transcript and both generated briefs
Give local Firstmate a known-cause synthetic parser bug and see it routed as an ordinary fix ✅ pass live Known-cause bug intake transcript
Give a local Pi worker a valid synthetic 84 ms candidate and see delivery advance to the exact measured commit ❌ fail live 84 ms candidate measurements and Git refs
Give a local Pi worker a faster synthetic candidate that drops one request and see it reject the candidate and preserve its ref ❌ fail live 19-of-20 candidate measurements and Git refs
  • git rev-parse HEAD, git diff --name-only 70d64d7c9ff788c58b9f27df9bcb91f7c74a9312 HEAD, and git status --porcelain
  • git archive HEAD .agents/skills skills and npx --offline --yes skills add ../installer-source --list
  • npx --offline --yes skills add ../installer-source --skill hillclimb --agent codex --yes and Pi RPC get_commands
  • bin/fm-brief.sh &lt;task-id&gt; synthetic-queue --mode local-only for the disposable delivery fixtures
  • python3 .hillclimb-live/run.py with real Pi headless turns and a loopback llama.cpp server, including the retry with default skill discovery, a larger context window, and aligned delivery branch names
  • git rev-parse, git branch --show-current, python3 measure.py, and python3 gate.py to verify the worker outcomes

🔧 No changes applied.
✅ Re-checked - no issues remain.

  • Live validation: ✅ go - 5 of 5 scenarios driven live against the product
Scenario Result Live Evidence
Open Pi in a disposable project and discover Hillclimb as a project skill ✅ pass live Pi project skill catalog
List Firstmate skills from an empty project and see public Stow while Hillclimb stays hidden ✅ pass live Public skill installer listing
Scaffold a synthetic latency measurement task and get a report-only scout brief ✅ pass live Firstmate brief generation and role refusal
Scaffold a synthetic latency acceptance task and get a local-only delivery brief ✅ pass live Firstmate brief generation and role refusal
Request a scout brief with a ship delivery mode and see Firstmate refuse it ✅ pass live Firstmate brief generation and role refusal
  • git rev-parse HEAD, git status --porcelain=v1, and git diff --name-only 70d64d7c9ff788c58b9f27df9bcb91f7c74a9312 HEAD
  • pi --mode rpc --no-session --offline --approve --no-extensions --no-prompt-templates --no-themes with get_commands in a disposable project
  • npx --yes [email protected] add &lt;worktree&gt; --list from an empty project
  • bin/fm-brief.sh campaign-measure synthetic-queue --scout
  • bin/fm-brief.sh campaign-accept synthetic-queue --mode local-only
  • bin/fm-brief.sh campaign-wrong-role synthetic-queue --scout --mode local-only
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

dnth added 4 commits November 24, 2026 13:25
Add .agents/skills/hillclimb for campaigns that push one measurable
metric toward a target: fixed stop rule, frozen harness, one
hypothesis per attempt, decision log, and preserved experiment
branches.

Register the load trigger in the agent-only trigger index, the
documentation audience inventory, and one AGENTS.md intake line.
@dnth
dnth force-pushed the fm/fm-hillclimb-skill branch from 59606fe to 9ee5a59 Compare November 24, 2026 05:27
@dnth
dnth merged commit 043269a into main Nov 24, 2026
43 of 44 checks passed
@dnth
dnth deleted the fm/fm-hillclimb-skill branch November 24, 2026 15:14
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