Repository navigation
fix(skill): Replace ':' with ';' in skill description - #45
Conversation
The SKILL.md description is parsed as YAML, and the : character in the plain-text description was being interpreted as YAML syntax. Removing it keeps the metadata parseable.
|
The colon cause this error in codex. ⚠ Skipped loading 1 skill(s) due to invalid SKILL.md files. |
|
ty! |
Bring the upstream secondmate feature (PRs #37/#42/#43/#31/kunchenguid#45) to herdr-backend, rewriting every treehouse/tmux mechanism into the herdr equivalents this branch already uses. A secondmate is a crewmate whose workspace is an isolated firstmate home (its own FM_HOME) and whose brief is a charter; it runs the same spawn/brief/status/watch/teardown/recovery lifecycle and is idle by default. treehouse -> herdr mapping: - Home leasing -> a herdr worktree of the firstmate repo. fm-home-seed.sh `-` runs `herdr worktree create --cwd $FM_ROOT --branch secondmate-<id>` and records the worktree path + open_workspace_id; herdr never recycles a worktree, so persistence is automatic and all lease/return bookkeeping is dropped. The workspace id is stored beside the home marker (.fm-secondmate-home.workspace) so retirement can find it. - Retirement / seed rollback -> `herdr worktree remove --workspace <ws> --force`. An explicit <home> path stays a plain directory home (a git clone, no herdr worktree); spawn opens a workspace for it on the fly via `herdr workspace create` and teardown closes it with `herdr workspace close` then deletes the dir. - firstmate_home_has_treehouse_slot -> "does the home record a workspace marker"; if yes remove via herdr, else plain rm. New: bin/fm-home-seed.sh (charter fill, project cloning, no-mistakes init, registry edits, transactional rollback, validate subcommand all ported as-is), bin/fm-backlog-handoff.sh (no treehouse/tmux; near-verbatim). Edits (re-implemented on the diverged herdr-backend files, not applied as upstream hunks): fm-spawn.sh (--secondmate path, FM_HOME indirection, registry/home resolution, launch in home, meta records home=/home_workspace=/projects=), fm-teardown.sh (kind=secondmate retirement via herdr, child-work refusal + --force discard, plus #31: allow teardown when work is on any remote incl. a fork), fm-brief.sh (--secondmate charter scaffold), fm-watch.sh (skip stale-pane wakes for kind=secondmate), fm-project-mode.sh (honor FM_HOME/FM_DATA_OVERRIDE so a secondmate resolves its own projects.md). kunchenguid#45: dropped the ':' from the afk skill description. Skipped fm-bootstrap.sh / fm-harness.sh (removed on this branch). Docs: AGENTS.md + README.md gain herdr-flavored secondmate sections (concept, secondmates.md routing table, fm-home-seed usage, idle-by-default contract, backlog handoff, kind=secondmate recovery, watch idle) with no treehouse/tmux wording. Tests: new herdr-stubbed tests/fm-secondmate.test.sh drives the real scripts against a stub `herdr` over the full lifecycle (seed `-`, register, validate dup ids/homes/overlap, spawn, backlog handoff, retire); tests/fm-teardown.test.sh ports the #31 any-remote/fork matrix to herdr. shellcheck bin/*.sh tests/*.sh clean; 5/5 test scripts pass.
Port upstream batch 1: teardown fork-remote eligibility (kunchenguid#31) + afk skill desc (kunchenguid#45)
…guid#45) Two session-start diagnostics that could not tell the truth, and now can. Ledger-subtracted upstream drift -------------------------------- `UPSTREAM:` reported the raw `rev-list --count HEAD..upstream/main`. Because a port lands under a new sha, upstream's original stays unreachable forever, so that figure counted delivered work as outstanding, could only ever rise, and would have read 99 after fifty more commits landed. A number that cannot fall is a number nobody reads. fm_upstream_undelivered now classifies each unmerged upstream commit and the line counts and lists only what is genuinely still outstanding. The ledger is DERIVED from the fork's own commit history, never stored, so it self-corrects the moment a batch lands. Three classes, first match wins: 1. An explicit record in docs/upstream-ported-ledger.txt. The reviewable escape hatch for hand-integrations with no machine-readable trace, and the way to retire a wrong match with `not-ported`. 2. The upstream subject, PR number and all, quoted in a fork commit body. Squash merges preserve it. Matching the whole subject rather than the bare (#N) token is what keeps fork PR numbers from colliding with upstream's. 3. The upstream sha quoted in a fork commit message, for hand-ports that reworded the subject. Patch-id equivalence is deliberately not a class: measured against this fork it identifies zero commits, so it would be an untested path backed by no evidence. Today: 99 raw, 24 delivered, 75 outstanding. Runtime version-drift alarm --------------------------- Every certified runtime here is running past its certification, and only the Kimi primary's exact-match pin noticed - by refusing to launch. Everything else drifted in silence. docs/toolchain-manifest.tsv records, per runtime, the certified version, why that version is the pin, and where its certification evidence lives. Rows are transcribed from tracked evidence and only added once the runtime's --version output has been parsed on a real machine; opencode and grok are listed as deliberately absent with their reasons rather than guessed at. fm_toolchain_check compares that manifest against PATH and prints one TOOLCHAIN_DRIFT line per mismatch. It FAILS OPEN by design - it reports and never blocks a launch. A strict gate in front of a self-updating binary turns every publisher release into an unscheduled outage, which is exactly the state the Kimi primary is in. The failure worth preventing here is silence. Also extracts the portable timeout runner into bin/fm-timeout-lib.sh so the new probe and the existing upstream probe share one owner rather than two copies.
|
Live result on dev portal 52274273 (2026-11-10), no secret values printed:
|
|
Live result, round trip confirmed (2026-11-10, portal 52274273):
Phone page: http://localhost:4400 while the server runs. Help desk: Service, Help Desk in portal 52274273, channel "KHov Text Simulator". |
…anges (kunchenguid#45) * fix(bin): reload the bridge strip and Factory pane when their code changes, and close worker copies whose job ended A running strip or Factory pane kept the code it started with, so after an update changed the shared fleet reading it could never read the crew again and said "reading the crew" forever. Each pane loop now checks its code before every frame and re-runs itself in place once the new files parse. The strip says "cannot read the crew (since HH:MM)" when readings keep failing. A factory tab opens live copies only of workers at work, and a copy closes its pane when its job ends. * no-mistakes(review): Keep copies for waiting-on-you workers, defer reloads safely * no-mistakes(review): Defer Factory pane reload while a notice shows * no-mistakes(document): Document Factory pane reload waiting for talk box and notices * no-mistakes(review): Baseline Factory code digest at load, unify staleness, hide interval * no-mistakes(review): Refuse reloading panes onto empty code files * no-mistakes(document): Note that panes refuse to reload onto empty files * no-mistakes(document): Note non-empty reload rule in strip and Factory headers * no-mistakes(document): Point split_workers docstring at MIRROR_STATES * no-mistakes(document): Sync worker-copy states in Factory pane and desk docs
Migration: apply to production after merge
Evidence (read-only production queries)
Mad City Windows & Baths (41496 vs 52301): left as two WorkspacesSame name, slug Pending live verification (needs the migration live in production, and no Teams send)Covered by unit tests now. After merge:
|
The SKILL.md description is parsed as YAML, and the : character in the plain-text description was being interpreted as YAML syntax. Removing it keeps the metadata parseable.