Repository navigation
feat(herdr): opt-in human-readable task-tab labels for new workers - #3458
RooseveltAdvisors wants to merge 31 commits into
Conversation
|
|
Speaking as Kun's firstmate: Waiting on the author — not merging, not a captain hold. class: VISION
Greptile P1 (HEAD): real at The earlier suffix-ownership P1 (unrelated tab ending in Please close the duplicate hole without restoring suffix false-positives (for example, persist the created label and match that recorded label plus legacy Security: workflow-zero; no pin/workflow RCE; author not blocked. no-mistakes attestation MATCH on |
|
Speaking as Kun's firstmate: Waiting on the author — not merging, not a captain hold. Re-raise through no-mistakes so the body attestation matches HEAD P1 (mutable title / duplicate hole): FIXED on this HEAD. Inspected
class: still VISION
CI this HEAD: CI |
|
Everything on this PR is green except The single failing assertion is: The watcher attached to an already-running cycle instead of starting a fresh one, which is a timing-dependent race in that test rather than a behaviour change from this PR — this branch touches backlog configuration, not the watcher. Every other lane on this head passes, including the no-mistakes gate. Could you re-run just |
|
Clarifying my earlier comment: "everything on this PR is green except |
4dfd090 to
458a477
Compare
|
Thank you for the detailed review - the P1 duplicate-hole fix and the design objection are both addressed on the new head. Design: the labels are now opt-in, not a new default. The unconfigured behavior is exactly main's promise: a new Herdr worker's task tab keeps the historical Nothing about the fixed P1 mechanics changed. The attempted-label history, exact-equality matching (current label, legacy Coverage: new unit tests for the preference parser, the per-home E2E now proves the default ( The branch also carries an additive merge of current upstream main (one textual conflict in |
30e47e1 to
36a8f66
Compare
… duplicate guards
…ed executable Herdr unit/E2E coverage. Herdr tests, real E2E, lint, syntax, and diff checks pass
…and added same-ID unrelated-label regression coverage. Herdr tests, syntax checks, diff check, and fm-lint pass
…k-titles Human-readable Herdr task-tab labels are presentation, so VISION keeps them out of the unconfigured default: a new worker's tab keeps the historical fm-<id> label unless the endpoint-owning home opts in through config/herdr-task-titles (a --secondmate spawn reads the secondmate's own config, the same home-authority rule the presentation projection follows). The flag inherits into secondmate homes under the existing primary-authoritative contract. Existing tabs are never renamed, and list_live discovery plus the duplicate/husk guards keep matching both label shapes regardless of the flag, so opting in or standing down never strands live work.
…unchenguid#3458) Upstream: kunchenguid#3458 State: open Slug: herdr-task-labels Upstream PR kunchenguid#3458 (open). Title-based Herdr task labels + duplicate guards. Spawn label wiring ships with kunchenguid#4225 (shared bin/fm-spawn.sh). House tracking: one commit ↔ one upstream PR. When this PR merges to origin/main, drop this commit from house main (rebase onto new origin/main or reset residue without this feature).
…id#4225) Upstream: kunchenguid#4225 State: open Slug: stale-sweep-capacity Upstream PR kunchenguid#4225 (open); supersedes closed kunchenguid#3720. Also sibling kunchenguid#4224. Includes bin/fm-spawn.sh and bin/fm-captain-hold.sh full house delta (capacity + kunchenguid#3712 actor bits + kunchenguid#3458 label bits) and bin/fm-teardown.sh full house delta (capacity release + kunchenguid#3657 retire-secondmate authority), because those files are not cleanly separable at tip. House tracking: one commit ↔ one upstream PR. When this PR merges to origin/main, drop this commit from house main (rebase onto new origin/main or reset residue without this feature).
Resolve conflicts by hand: keep the PR's Herdr task-title behavior, follow upstream's relocation of the AGENTS.md layout block into the operational-home-layout skill (the PR's two documentation lines move there), combine both sides' config-inherit, teardown, and documentation changes, and keep the PR's husk-wording change while aligning upstream's new cross-reference. Remove the PR's shadowed duplicate make_herdr_stub helper so the recorded-herdr-tab relaunch test runs against the shared stateful stub.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-teardown.sh (+119/-19 lines for the retire-secondmate authority and end-of-options parsing) pushed its ShellCheck analysis over fm-lint's per-root memory envelope. Evidence: the run's telemetry sidecar (artifact fm-lint-telemetry-1) records `end ... bin/fm-teardown.sh ... rc=251 reason=memory rss_kib=8388016`, and the job exits 251 after `shellcheck: out of memory`. Reproduced exactly: under the CI envelope (ulimit -v 12582912, `shellcheck --norc --external-sources`) the base-commit bin/fm-teardown.sh passes at 8,263,224 KiB RSS while the PR head fails with rc 251; head passes uncapped (8,448,828 KiB) and at 12.5/13 GiB caps - so the root needs just over the 12 GiB cap's ~8 GiB GHC heap, i.e. the envelope (not the script) is the shared boundary at fault. Invariant: every canonical root's full source-aware analysis must fit inside FM_LINT_ROOT_MEMORY_KIB so a required-bounds partition run completes; it must hold for all 451 roots in both partitions under CI's FM_LINT_REQUIRE_BOUNDS=1. Fix at that one shared boundary: bin/fm-lint.sh default FM_LINT_ROOT_MEMORY_KIB 12582912 -> 14680064 (14 GiB, following this file's documented precedent of raising the wall when a root outgrows it, e.g. 8 -> 12 GiB) with the sizing rationale updated to the measured ~8.4 GiB resident peak, plus the roots-sidecar contract value updated in tests/fm-lint.test.sh:1697. Verification: bounded single-root run of bin/fm-teardown.sh now rc=0 (sidecar records 14680064, result_exit 0); full CI-parity local runs of `FM_LINT_REQUIRE_BOUNDS=1 FM_LINT_JOBS=1 bin/fm-lint.sh --partition 1of2` (rc=0, 226/226 roots ok) and `--partition 2of2` (rc=0, 225/225 ok) covering all 451 canonical roots with zero abnormal ends, backend-purity clean and actionlint validating 3 workflow files; `tests/fm-lint.test.sh` passes end to end. No other check, doc, or config pins the old constant. Only ci-1 was addressed; the declined round-1 findings and the unselected Greptile P2 were left untouched as instructed (cherry picked from commit 604042b)
Intent
Babysit #4224 until Kun merges it. Captain (2026-09-16): RETAIN published head aeb66a07 and record the history breach; no restoration (content was not lost). Also DECLINE herdr-endpoint coverage for this change — it needs new fake-herdr test machinery beyond scope; file that coverage gap as its own follow-up bead. Never force-push. Never merge red. Merge is Kun's.
What Changed
config/herdr-task-titlespresence flag lets a home label new Herdr worker tabs<short title> (<id>)from the backlog row title. Without the flag, or when a task has no row title, tabs keep the oldfm-<id>label. The flag is inherited by secondmate homes, and a--secondmatespawn reads that home's own flag and backlog.fm_backlog_row_probenow reads the full, untruncated title via--fulland decodes JSON-quoted values.herdr_task_label=, and an adopting relaunch keeps that label without renaming the tab. Spawn writes each attempted label tostate/<id>.herdr-task-labels, which is compacted once the new tab is verified and removed by teardown. Discovery and the duplicate/husk guards inbin/backends/herdr.shnow match the new label, the legacyfm-<id>label, and any recorded earlier attempt, so editing a title between attempts cannot hide a live tab.[email protected]for fixture homes that keep a backlog.bin/fm-lint.shraises the defaultFM_LINT_ROOT_MEMORY_KIBfrom 12 GiB to 14 GiB because ShellCheck on the largerbin/fm-teardown.shneeded more memory. The docs (configuration.md,herdr-backend.md, operational-home-layout skill) and the herdr, backlog-row-probe, and control-relaunch tests are updated to match.🤖 Generated with Claude Code
Risk Assessment
✅ Low: Human-readable labels are opt-in and default off. Duplicate/husk detection now matches the new label, the legacy fm- label and every recorded attempted label through one shared predicate. Relaunches reuse the recorded label, and failed row probes fall back to fm-. The fm-lint memory-cap raise is a bounded CI envelope change. The one remaining concern is a rare, unverified edge case with titles that start with '-'.
Testing
I ran the real-Herdr end-to-end suites against isolated fm-lab-* sessions with scratch homes. Every label scenario passed: opt-in title labels, thefm-<id>fallback, turning the flag off without renaming live tabs, recovery seeing both label shapes, manual-backend homes, secondmate titles from their own home, and husk/restart handling across both label shapes in the presentation lab. Each suite's lab session was gone afterwards. The workspace-per-home suite stops at its teardown step because of a Treehouse project-lock refusal on this host. That failure is identical at the base commit, so I drove the label sections after it with a copy of the suite that skips that step. The relaunch no-probe check and the row-probe tests also passed, but they use fixtures, so they are not counted as live results. This is a CLI change with no UI, so there are no screenshots; the evidence is the test transcripts, which compare real Herdr tab labels.Evidence: workspace-per-home real-herdr e2e (as shipped; stops at teardown section, same as base)
Source: workspace-per-home real-herdr e2e (as shipped; stops at teardown section, same as base)
Evidence: workspace-per-home e2e incl. manual-backend + secondmate-own-row sections (13/13 ok)
Source: workspace-per-home e2e incl. manual-backend + secondmate-own-row sections (13/13 ok)
Evidence: driver script for sections 6-7 (copy of the shipped suite with only the teardown section removed)
Source: driver script for sections 6-7 (copy of the shipped suite with only the teardown section removed)
Evidence: presentation real-herdr lab e2e (23/23 ok)
Source: presentation real-herdr lab e2e (23/23 ok)
Evidence: backlog row probe test
Source: backlog row probe test
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
⏭️ **Rebase** - skipped
docs/herdr-backend.md- merge conflict rebasing onto origin/mainbin/backends/herdr.sh:2669- With config/herdr-task-titles on, the task-tab label now comes from the backlog row title, a free-text field (fm_backend_herdr_task_label at bin/backends/herdr.sh:2492). The label is passed to herdr as a separate argv token:tab create ... --label "$label"(line 2669), and the projection paths do the same at lines 2778 and 3001. Before this change the label was alwaysfm-<id>, which can never start with '-'. Now a row titled, for example,--dry-run supportproduces--label "--dry-run support (css)". A clap-style CLI may read that value as an unknown flag and reject it. The spawn would then exit 1 instead of falling back tofm-<id>. Whether herdr's parser rejects hyphen-leading values was not verified here. Smallest fix: pass the label as--label="$label"at these three call sites, or have fm_backend_herdr_task_label fall back tofm-<id>when the sanitized title starts with '-'.tests/fm-backend-herdr-workspace-per-home-e2e.test.sh:334- On this host, fm-teardown.sh refuses with 'cannot resolve the shared Treehouse project lock' when the real-herdr workspace-per-home e2e reaches its teardown section, so the shipped suite exits 1 before its manual-backend and secondmate-row sections. The base commit 8690c41 fails identically, so this change did not cause it. I ran those sections with a driver copy of the suite (all passed). CI owns the authoritative full run.tests/fm-control-relaunch.test.sh- The new herdr-noprobe relaunch fixture leaves read-only state/<id>.git-hooks files under its /tmp/fm-control-relaunch.* dir, which produces 'rm: Permission denied' at cleanup and leaves residue behind. The test still passes. Other fixtures in this repo chmod u+rwx before removing; this one could do the same. I removed the residue from my run.env -u NO_MISTAKES_GATE bash tests/fm-backend-herdr-workspace-per-home-e2e.test.sh(real herdr + real fm-spawn.sh; sections 1-4 passed, then stopped at section 5 on an fm-teardown Treehouse lock refusal)Same suite at base commit 8690c411 (extracted withgit archiveinto a temp dir): fails at the same teardown step, so the refusal is not caused by this changebash ~/.no-mistakes/evidence/01M3Z6FR1PWMRKXYKKNQB7B8JY/workspace-per-home-e2e-sections6-7-driver.sh(copy of the suite that skips the teardown section and ignores teardown failures, so sections 6 and 7 actually run): 13/13 okenv -u NO_MISTAKES_GATE bash tests/fm-backend-herdr-presentation-e2e.test.sh(real Herdr lab, 23/23 ok, default-session tripwire intact)bash tests/fm-control-relaunch.test.sh(includes the check that--relaunchon an opted-in exempt home runs no row-title probe)bash tests/fm-backlog-row-probe.test.shRanherdr session listafterwards: no fm-lab-herdr-e2e sessions left behind✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.