Repository navigation
Description
What this is
Two book-build infrastructure disagreements found by the bookwright coverage audit of the mcpx book (PR #13413, tracking #1888). The audit fixed the book-side symptoms; both items are about the generators/config that will reintroduce them.
1. Generated spec tables carry unescaped placeholder tokens
The baseline .#mcpx-docs build emitted 19 "unclosed HTML tag" warnings. Thirteen of them sit in text generated from the MCP spec corpus or quoted from upstream sources:
spec/conformance-matrix.md—mcpx elicit result <id>(5 occurrences of<id>)spec/requirements.md—<server>spec/revision-conflicts.md—<server>,<id>protocol.md— a quoted"Invalid or missing client id: <uri>: <reason>"stringcompare/register/plugin-apis.md— quoted TypeScript (Array<Hooks>,Promise<void>,Array<SystemPart>)
Bare <token> prose is eaten as an HTML tag by the renderer: the placeholder vanishes from the published page, not just from the log. PR #13413 escaped the committed occurrences, and the settings table's instance was fixed at its source (the script.devshell Short string in internal/settings/registry.go). But the spec chapters are regenerated from the corpus, so the next regeneration reintroduces the spec-side ones unless the generator escapes angle-bracket placeholders in quoted spec text (backticks or <).
Ask: the spec-corpus generator escapes placeholder tokens at generation time, so regenerated chapters are warning-free without hand edits.
2. mcpx-docs.yml's header describes PR builds its triggers never fire
.github/workflows/mcpx-docs.yml opens with "Builds run on pull requests, pushes to main, and manual dispatch" and has an "Upload built site (PR builds only)" step guarded by if: github.event_name == 'pull_request' — but its on: triggers are push (main) and workflow_dispatch only. There is no pull_request trigger, so the step is unreachable and the comment is wrong. (The sibling build-only workflows — fleet-docs.yml, atlas-docs.yml, id-docs.yml — likewise build on push-to-main + dispatch, not on PRs.)
Ask: either add the pull_request trigger (with the artifact upload the comment promises) or correct the header comment and remove the dead step, so the workflow file and its own documentation agree. The book's new deploying chapter (pkgs/mcpx/docs/deploying.md, PR #13413) describes the triggers as they actually are.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-23T15:39:33Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activity
developing-today commentedon Nov 23, 2026
CODE-4893
dezren39 commentedon Nov 23, 2026
Lane ZZ claim — taking both halves of this issue:
internal/refdocis the suspect), make it escape<...>placeholder tokens in generated tables/quoted spec text, regenerate the affected chapters, and confirm the.#mcpx-docsbuild warning count drops to the known remaining search-index size notice..github/workflows/mcpx-docs.yml's header to describe its real triggers (push to main + workflow_dispatch, matching the sibling docs workflows) and remove the dead PR-only artifact-upload step.Plan: reproduce the docs build first-hand and count warnings before touching anything; verify with the generator's Go tests (
internal/refdoc,internal/settings) and a before/after docs build; land via PR from a laptop worktree off fresh main.Merge pull request #13449 from developing-today/lane-zz-13422
dezren39 commentedon Nov 23, 2026
Lane ZZ — done, both halves landed in PR #13449 (merged, merge commit
ae889033d512).Premise: TRUE, reproduced first-hand. On main as found,
go test ./internal/conformance -run TestMatrixFAILED: regeneration flipped the five committed<id>matrix rows back to bare<id>(source: the Gap Why atinternal/conformance/coverage_clientfeatures.go:158), the matrix input digest was stale from the same hand edits, andrequirements.jsonwas stale against its source. The book build itself showed 1 warning (the search-index notice) only because PR #13413's escapes were hand-applied to the generated files — an unsustainable state the golden test was already rejecting.What landed:
internal/refdocgainsEscapeAngles—</>become</>in prose; backtick code spans pass through untouched (so the audit's own source fix,`flake:<ref>`, keeps its exact text) and existing entities are never double-escaped.refdoc.Tablecells route through it.internal/conformance'smdEscapeuses it. The regenerated matrix reproduces the escaped rows byte for byte — the only matrix diff is the input-digest line — andrequirements.jsonwas regenerated to match its source.internal/settings'ConfigurationTableescapes its governs cell the same way. All committed generated regions (configuration.md, parity.md, protocol.md) regenerate byte-identically, so this removes the regression path without book churn. (The hand-maintained chapters — requirements.md, revision-conflicts.md, protocol.md prose, plugin-apis.md — keep the audit's escapes; nothing regenerates them.).github/workflows/mcpx-docs.yml: header now describes the real triggers (push to main + manual dispatch, verified against the three sibling docs workflows), the dead PR-only artifact-upload step is removed, and the deploy job's "PR build" reference now says "build job". Triggers and job behavior otherwise unchanged.Verification (laptop route):
go test ./internal/refdoc ./internal/settings ./internal/conformance ./internal/cli ./internal/api— all green,TestMatrixpassing again; new unit tests pin the escaping in refdoc (TestEscapeAngles,TestTableEscapesAnglePlaceholdersInProse) and inmdEscape(TestMdEscapeAngles).GOOS=darwin GOARCH=arm64 go test -c ./internal/conformance— ok.nix build .#mcpx-docs: 1 warning before, 1 warning after — the known search-index size notice (12,776,815 → 12,776,769 bytes) — and zero unclosed-tag warnings in both. The change is that the warning-free state is now produced by the generators and enforced by the golden tests, not by hand edits to generated files.Closing as completed.
dezren39 commentedon Nov 23, 2026
Closed as implemented.