Repository navigation
docs: make the Herdr backend guide easier to read - #5606
Merged
kunchenguid merged 2 commits intoSep 25, 2026
Merged
Conversation
Restructure the Herdr backend doc's prose into shorter sections, lists, numbered procedures, and tables without changing documented behavior. Every original heading, anchor, fenced code block, link target, and documented fact is kept.
Owner
|
Speaking as Kun's firstmate: this is merged. Thank you @tmchow — really appreciate you taking the time on this. |
mituso89
pushed a commit
to mituso89/firstmate
that referenced
this pull request
Sep 26, 2026
* docs: make herdr-backend easier to read Restructure the Herdr backend doc's prose into shorter sections, lists, numbered procedures, and tables without changing documented behavior. Every original heading, anchor, fenced code block, link target, and documented fact is kept. * no-mistakes(document): Restore composer-proof reason and complete Herdr topic table
mehulbhagwani
pushed a commit
to mehulbhagwani/firstmate
that referenced
this pull request
Sep 26, 2026
* docs: make herdr-backend easier to read Restructure the Herdr backend doc's prose into shorter sections, lists, numbered procedures, and tables without changing documented behavior. Every original heading, anchor, fenced code block, link target, and documented fact is kept. * no-mistakes(document): Restore composer-proof reason and complete Herdr topic table
mehulbhagwani
pushed a commit
to mehulbhagwani/firstmate
that referenced
this pull request
Sep 26, 2026
* docs: make herdr-backend easier to read Restructure the Herdr backend doc's prose into shorter sections, lists, numbered procedures, and tables without changing documented behavior. Every original heading, anchor, fenced code block, link target, and documented fact is kept. * no-mistakes(document): Restore composer-proof reason and complete Herdr topic table
ashkonmousavi
added a commit
to ashkonmousavi/firstmate
that referenced
this pull request
Sep 26, 2026
Intent
Improve the kunchenguid/firstmate documentation. Many of the docs are hard to read because they were clearly agent-written. That is not necessarily bad, but some docs are almost impossible for a human to understand.
Give
docs/herdr-backend.mda ce-noslop rewrite that still communicates the same information but improves readability, the way PR #5589 did fordocs/configuration.md.That PR turned long prose paragraphs into task navigation, tables, bullet lists, numbered procedures, and shorter
###subsections. It kept every original heading and anchor, left every fenced code block byte-identical, and preserved every documented fact, default, qualifier, safety limit, identifier, quoted string, and link target, with one sentence per line.This is a documentation-only change with no runtime behavior impact.
What Changed
docs/herdr-backend.mdfor readability. Long prose paragraphs are now tables, bullet lists, numbered procedures, and shorter###subsections covering spawn preflight, placement, the presentation journal, cleanup, composer proof, submit confirmation, the polling fallback, and the daemon. The text is one sentence per line.Risk Assessment
✅ Low: This change only touches documentation. Every original heading, anchor, link target, backticked identifier, number, and fenced code block is preserved, and all headings still have unique anchors. The only gaps are an incomplete navigation table and one dropped causal link.
Testing
This is a documentation-only change to docs/herdr-backend.md with no runtime surface, so I did not start a Herdr lab or any product. Structural checks against the base commit passed. Both fenced code blocks are byte-identical and in the same order. All 15 original headings and their anchors are still present, and no link target was dropped. The newly added in-doc navigation links, the relative file links, and all 6 inbound cross-doc anchor references resolve. No non-list prose line holds more than one sentence. I made no visual capture because the change is Markdown source with no rendered app UI. Checking that every documented fact survived is a job for review, not live testing.
Evidence: Structure preservation check output
Source: Structure preservation check output
Evidence: Structure check script
Source: Structure check script
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
docs/herdr-backend.md:14- The new 'Find a topic' table (docs/herdr-backend.md:14-26) reads as an index of the page, but three##sections are missing from it: 'Default-tab prune safety' (line 481), 'Push events and polling fallback' (line 718), and 'Away-mode supervisor support' (line 748). A reader looking for push events or the away daemon will not find them in the table. Add a row for each, for example 'Why a seeded default tab is or is not closed', 'How blocked transitions arrive and what happens without protocol 16', and 'Where the away daemon runs and how it stops'.docs/herdr-backend.md:556- The rewrite splits the original sentence 'Other harnesses, and panes with no native identity, skip this proof and keep the type-then-Enter path, because their paste placeholders and composer shapes are not live-verified.' into two sentences at lines 555-556. The split drops the stated cause: the old text said these panes skip the proof because their shapes are unverified, and the new text only puts the two facts next to each other. The intent requires preserving every qualifier. Restore the causal link, for example 'They skip it because their paste placeholders and composer shapes are not live-verified.'git diff --stat b42d4fa 138721e(confirmed only docs/herdr-backend.md changed)python3 check.py before.md after.md docs/herdr-backend.md: compared the fenced code block sequence byte-for-byte, checked the original headings and slug anchors, compared link-target sets, resolved in-doc anchors and relative file links, and resolved inboundherdr-backend.md#...references across the repo viagit grepScan for one sentence per line on the rewritten doc, skipping code blocks, tables, and list markers🔧 **Document** - 1 issue found → auto-fixed ✅
tests/fm-backend-herdr.test.sh:3989- Several test comments name docs/herdr-backend.md sections that are not headings or text in the doc. The names are "Known gaps", "ID stability across a server restart", "Task container shape", "Incident (2026-07-07)", "Native agent-state submit confirmation" and "Busy state". Affected files: tests/fm-backend-herdr.test.sh, fm-backend-herdr-smoke, fm-backend-herdr-respawn-idem-e2e, fm-afk-inject-herdr-e2e, fm-crew-state and fm-backend.test.sh. These names were already missing before this change, so this rewrite did not cause them. Fixing them means editing test files, which is outside this docs-only change. A later follow-up could repoint these comments to the current anchors, such as #default-tab-prune and #restart-and-liveness-behavior.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.