Repository navigation
feat(herdr): opt-in project groups with status tags and sorted agents view - #7303
thelad-dev wants to merge 7 commits into
Conversation
4e7352e to
59dff03
Compare
|
Speaking as Kun's firstmate (OSS triage, not the captain). Thank you @thelad-dev. This is a nicely contained presentation feature, and the off path is easy to verify.
One blocker (waiting on you): the required "PR must be raised via no-mistakes" check failed on Live validation: 4 of 5 is a good spread. If you can, while re-raising, please drive the one untested scenario live and post the evidence: a newly spawned workspace landing once at the end of its project group, with only that workspace moving. It's the only part that moves anything in Herdr. If that isn't practical, a sentence on why the offline coverage is enough is fine. Once the no-mistakes check is green on the new head, this is on the auto-merge path as an opt-in. No rush, and thanks again! |
…ts view Add config/herdr-project-groups (absent or off: unchanged behavior). When on, Firstmate tags each Herdr task pane, and its own projected workspace, with display-only fm_group/fm_state/fm_task/fm_sort tokens, sets a Herdr agents view sorted by group then status (needs-captain, problem, running, done), and places a new projected task at the end of its own group inside the parent block with the same single verified move as before. The watcher reconciles tags once per poll and a spawn tags its task at once; bin/fm-herdr-groups.sh also previews (plan), clears, and prints or appends suggested sidebar rows with a backup. Covered by offline tests only.
59dff03 to
f0ee8da
Compare
|
Speaking as Kun's firstmate (OSS triage, not the captain). Thanks for the re-raise, @thelad-dev. The body now has its Contract-class: still opt-in (my own read of the tip against main Two things on the new head, both waiting on you:
Live validation (still optional): if it's practical while re-raising, a short live check of a newly spawned workspace landing at the end of its project group, with only that workspace moving, would round out the evidence. If not, a sentence on why the offline coverage is enough is fine. Once the no-mistakes check is green on a head without the unrelated shard-policy change, this is back on the auto-merge path as an opt-in. Thanks again! |
Die Anhebung von PORTABLE_SERIAL_MAX_WEIGHT_MS auf 1715043, der nachgezogene Hinweis fuer tests/fm-supervision-host.test.sh und die daran haengenden Stellen in tests/fm-test-run.test.sh und docs/fm-test-portable-shards.md gehoeren nicht zu den Projektgruppen. Sie betreffen das repoweite Problem der seriellen Shards und bleiben dort, wo es behandelt wird. Von der Testinfrastruktur bleibt nur, was die neue Suite selbst braucht: ihre Hinweiszeile und der Kollationsfix der Abdeckungspruefung. Die Abdeckungspruefung bleibt mit dem alten Budget von 1200000 gruen; der groesste modellierte serielle Shard liegt bei 1074843 ms.
|
Speaking as Kun's firstmate: noting the new tip The unrelated |
|
Speaking as Kun's firstmate (OSS triage, not the captain). Thanks @thelad-dev. Dropping the shard-budget change was exactly what I was hoping for. On head Contract-class: opt-in (my own read of the tip against main VISION.md, rule by rule: One captain (aligns — an opt-in presentation convenience that composes with Herdr). Authority explicit (aligns — off unless the home turns it on). Scripts own the mechanics (aligns). Restart a non-event (aligns — tags and the view are re-derived from disk on the next poll). Delegation with a spine (aligns). Outlives any vendor (aligns — Herdr is one of several backends, and older protocols warn and stay inactive. VISION also asks adapters to earn trust through verification, see below). Scope (aligns). One thing left, waiting on you: live validation. Your own "Verification status" section in
Re-raising through no-mistakes with that evidence in the body works just as well. Once it's posted, please also update the "Verification status" paragraph (and the "only verified release" line) to match. This is on the opt-in auto-merge path once the live evidence is here. No rush, and thanks again! |
|
Superseded by #7434, which resubmits this change without the unrelated test-infrastructure edit, as requested. |
Intent
Herdr soll Arbeitsbereiche optional nach Projekt gruppieren und mit Status kennzeichnen und dazu eine sortierte Agentenansicht bieten. Die Gruppierung ist opt-in: ohne die Konfigurationsdatei
config/herdr-project-groupsverhaelt sich alles genau wie vorher - Spawn uebergibt einen leeren Gruppenschluessel, die Projektionsreihenfolge behaelt die Platzierung am Blockende, und Watcher und Spawn rufen das Gruppenskript nicht auf. Die Synchronisation im Watcher ist reine Darstellung und loest keine Benachrichtigung aus. Vererbung gibt nur eine Datei weiter, die die primaere Instanz schon angelegt hat. Es entsteht keine neue Workflow-, Secret- oder Netzwerkflaeche. Am uebrigen Verhalten soll sich nichts aendern.In dieser Runde kommt kein neues Verhalten hinzu. Die Anhebung von
PORTABLE_SERIAL_MAX_WEIGHT_MSund die daran haengenden Hinweise, Tests und Dokumentationsstellen zu den seriellen Shards sind wieder heraus; sie gehoeren zum repoweiten Thema aus #6790 und nicht hierher. Von der Testinfrastruktur bleibt nur, was die neue Suite selbst braucht: ihre Hinweiszeile und ein kollationssicherercomm-Aufruf in der Abdeckungspruefung. Zusaetzlich sind die leeren Array-Durchlaeufe inbin/fm-herdr-groups.shfuer Bash 3.2 unterset -uabgesichert.What Changed
config/herdr-project-groups, withbin/fm-herdr-groups.shplanning/syncing display-onlyfm_*pane and workspace tokens, status ranks, and afirstmate/projectsagents view over protocol 22.fm_group_orderinside the parent block, and inherit the setting into secondmate homes.tests/fm-herdr-groups.test.shplus herdr backend ordering cases, with locale-safecommfixes in the test runner.Risk Assessment
✅ Low: The Bash 3.2 empty-array abort is fixed at the three reported sites, and the remaining project-groups paths are well-bounded display-only logic with safe off-by-default guards.
Testing
Exercised the Herdr project-groups public CLI and the Bash 3.2 empty-array fix end-to-end: all fm-herdr-groups cases passed (including zero-task plan/sync and all-invalid rules fallback), the backend herdr suite passed with group-key placement ok, a fake-herdr CLI transcript showed plan/sync token reporting and agents-view set plus sidebar rows, and docker bash 3.2 reproduced the pre-fix unbound
TASKS[@]failure while the fixed script exited 0 with empty plan output.Evidence: End-user fm-herdr-groups CLI transcript (plan/sync/order-key/sidebar)
Source: End-user fm-herdr-groups CLI transcript (plan/sync/order-key/sidebar)
Evidence: Bash 3.2 post-fix empty-array CLI paths
Source: Bash 3.2 post-fix empty-array CLI paths
Evidence: Bash 3.2 before/after empty TASKS[@] summary
Source: Bash 3.2 before/after empty TASKS[@] summary
Evidence: fm-herdr-groups.test.sh run log
Source: fm-herdr-groups.test.sh run log
Evidence: fm-backend-herdr.test.sh run log (group-key ordering ok)
Source: fm-backend-herdr.test.sh run log (group-key ordering ok)
Evidence: Bash 3.2 empty-array probe and pre-fix failure
Source: Bash 3.2 empty-array probe and pre-fix failure
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
bin/fm-herdr-groups.sh:147- Underset -u, stock macOS Bash 3.2 treats empty${!arr[@]}/${arr[@]}as unbound (the repo already documents and guards this elsewhere). Concrete failure: anyconfig/herdr-project-groupsrules file hitsfor i in "${!RULE_GROUP[@]}"while the array is still empty on the first rule line, so load_setting aborts before any rule is stored; rules mode never works on Bash 3.2. The same pattern appears at resolve_group (line 169) when RULE_GROUP is empty after all-invalid rules, and at cmd_plan (line 287) when there are zero Herdr tasks (fm-herdr-groups.sh planshould print nothing and exit 0). The file already uses the safe${sels[@]+"${sels[@]}"}form for selectors. Earliest fix: use the same+guard (or a length check before the loop) for RULE_GROUP indices and TASKS iterations.🔧 Fix: Guard empty-array loops for Bash 3.2
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh tests/fm-herdr-groups.test.sh(including new zero-task plan and all-invalid rules cases)bin/fm-test-run.sh tests/fm-backend-herdr.test.sh(includes group-key presentation ordering)manual CLI transcript offm-herdr-groups.shplan/sync/order-key/sidebar-config against a fake herdrdocker run bash:3.2pre-fix vs post-fix emptyTASKS[@]/ zero-taskplanregression✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.