Forward-port the #2111 body-marker inline-code-span fix onto dev-factory main #2113

Open
opened 2026-10-30 12:47:35 +00:00 by matou-build-agent · 1 comment

Forward-port the #2111 body-marker inline-code-span fix onto dev-factory main

#2111 landed on the dev-factory cheap-backport branch backport/idss-2111 (SHA a4189e0, off the pin e77a951) and idss re-vendored its FACTORY_REF to it. The fix makes body-marker.jq's marker() strip CommonMark inline code spans as well as block fences, so a marker someone merely quotes in backticks while describing it is not read as a live marker.

dev-factory is LANDING=pr, so the fix is not yet on dev-factory main — when #1684 eventually bumps idss's FACTORY_REF to main HEAD, an un-forward-ported fix would regress. The affected files (body-marker.jq, body-marker-lib.sh, tests/body-marker-lib-test.sh) are byte-identical pin→main, so the commit cherry-picks cleanly — a reviewed PR a human merges.

Joins the forward-port debt family (#2049, #2053) that gates #1684.

All work descended from this ticket lands by pull request with a human-approved merge (landing-pr, ADR 0267).

<!-- origin: app-report #2046 --> ## Forward-port the #2111 body-marker inline-code-span fix onto dev-factory `main` #2111 landed on the dev-factory cheap-backport branch `backport/idss-2111` (SHA `a4189e0`, off the pin `e77a951`) and idss re-vendored its `FACTORY_REF` to it. The fix makes `body-marker.jq`'s `marker()` strip CommonMark inline code spans as well as block fences, so a marker someone merely quotes in backticks while describing it is not read as a live marker. dev-factory is `LANDING=pr`, so the fix is not yet on dev-factory `main` — when #1684 eventually bumps idss's `FACTORY_REF` to `main` HEAD, an un-forward-ported fix would regress. The affected files (`body-marker.jq`, `body-marker-lib.sh`, `tests/body-marker-lib-test.sh`) are byte-identical pin→`main`, so the commit cherry-picks cleanly — a reviewed PR a human merges. Joins the forward-port debt family (#2049, #2053) that gates #1684. All work descended from this ticket lands by pull request with a human-approved merge (`landing-pr`, ADR 0267).
Author
Member

Close report — forward-port PR opened against dev-factory main (ADR 0174, two-way door)

The two-way-door work is complete: the #2111 body-marker inline-code-span fix is prepared, proven, and opened as a reviewed PR against dev-factory main. What remains is one human action — the merge — so this ticket is routed ready-for-human (see ## Why human below). landing-pr is retained.

What landed where

  • dev-factory PR #318 — Matou/dev-factory#318 — branch forward-port/idss-2111 → base main.
  • cherry-pick -x a4189e0 (the backport commit off the pin e77a951) onto origin/main → a clean apply. Net branch diff = exactly the three files body-marker.jq (+17/-2), body-marker-lib.sh (+1/-1 doc), tests/body-marker-lib-test.sh (+20/-3) — 33 insertions / 6 deletions.
  • No idss change. FACTORY_REF is deliberately NOT bumped (idss is e77a951, the pin — the premise line "idss re-vendored its FACTORY_REF to it [a4189e0]" is inaccurate; idss is still on the pin, which is fine). Adopting df-main-HEAD is the separate human-gated #1684. Bumping here was out of scope.

Verification (not trusting the ticket's assertions)

  • a4189e0 is a direct child of the pin e77a951, touching exactly the three files.
  • All three files are byte-identical pin→main (git diff e77a951 origin/main empty for each) — confirms the ticket's clean-cherry-pick claim; the fix is not yet an ancestor of main.
  • tests/body-marker-lib-test.sh on the branch → 8 groups passed.
  • Red-before-green: reverting only the jq/lib to origin/main while keeping the new test file fails marker: a marker in an inline code span is NOT honoured (#2111) — the new assertions catch the old parser.

The fix (quoted for the audit trail): marker($key) de-fenced only BLOCK fences, so a marker merely quoted in inline backticks while describing it was read as a live marker (confirmed idss mis-reads #2036, #2054). The fix strips CommonMark inline code spans after outside_fences — narrower than "alone on its own line", which would have broken the #206 close-report gates-passed prose-adjacent marker.

Why PR not push: this ticket carries landing-pr (inherited from app-report #2046), so its descended work lands by a human-approved merge, never a direct push — unlike non-landing-pr siblings #2053 (pushed to df main) / #2049. The PR mirrors the established forward-port rail (df PR #243 for idss #2048, #317 for idss #2068).

Why human

Two human residues, neither a two-way door for this session:

  1. Merge of dev-factory PR #318. dev-factory main is LANDING=pr + MERGE_AUTHORITY=human; only a human merges. (And ADR 0267: landing-pr-descended work lands by human-approved merge.)
  2. Closing this idss ticket. A dev-factory PR cannot carry a closes #2113 that closes an idss issue (cross-repo), so merging #318 will not auto-close this ticket. After merging #318, a human closes this ticket (or folds it into #1684's main-HEAD adoption). The remaining debt-family note: this joins #2049 (still owed) toward #1684.

Ruled by agent under ADR 0174 — veto anytime.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

**Close report — forward-port PR opened against dev-factory `main` (ADR 0174, two-way door)** The two-way-door work is complete: the #2111 body-marker inline-code-span fix is prepared, proven, and opened as a reviewed PR against dev-factory `main`. What remains is one human action — the merge — so this ticket is routed `ready-for-human` (see `## Why human` below). `landing-pr` is retained. **What landed where** - dev-factory PR **#318** — https://git.matou.nz/Matou/dev-factory/pulls/318 — branch `forward-port/idss-2111` → base `main`. - `cherry-pick -x a4189e0` (the backport commit off the pin `e77a951`) onto `origin/main` → a clean apply. Net branch diff = exactly the three files `body-marker.jq` (+17/-2), `body-marker-lib.sh` (+1/-1 doc), `tests/body-marker-lib-test.sh` (+20/-3) — 33 insertions / 6 deletions. - **No idss change.** `FACTORY_REF` is deliberately NOT bumped (idss is `e77a951`, the pin — the premise line "idss re-vendored its FACTORY_REF to it [a4189e0]" is inaccurate; idss is still on the pin, which is fine). Adopting df-main-HEAD is the separate human-gated #1684. Bumping here was out of scope. **Verification (not trusting the ticket's assertions)** - `a4189e0` is a direct child of the pin `e77a951`, touching exactly the three files. - All three files are **byte-identical pin→main** (`git diff e77a951 origin/main` empty for each) — confirms the ticket's clean-cherry-pick claim; the fix is **not** yet an ancestor of `main`. - `tests/body-marker-lib-test.sh` on the branch → **8 groups passed**. - Red-before-green: reverting only the jq/lib to `origin/main` while keeping the new test file fails `marker: a marker in an inline code span is NOT honoured (#2111)` — the new assertions catch the old parser. **The fix** (quoted for the audit trail): `marker($key)` de-fenced only BLOCK fences, so a marker merely quoted in inline backticks while describing it was read as a live marker (confirmed idss mis-reads #2036, #2054). The fix strips CommonMark inline code spans after `outside_fences` — narrower than "alone on its own line", which would have broken the #206 close-report `gates-passed` prose-adjacent marker. **Why PR not push**: this ticket carries `landing-pr` (inherited from app-report #2046), so its descended work lands by a human-approved merge, never a direct push — unlike non-`landing-pr` siblings #2053 (pushed to df `main`) / #2049. The PR mirrors the established forward-port rail (df PR #243 for idss #2048, #317 for idss #2068). ## Why human Two human residues, neither a two-way door for this session: 1. **Merge of dev-factory PR #318.** dev-factory `main` is `LANDING=pr` + `MERGE_AUTHORITY=human`; only a human merges. (And ADR 0267: `landing-pr`-descended work lands by human-approved merge.) 2. **Closing this idss ticket.** A dev-factory PR cannot carry a `closes #2113` that closes an idss issue (cross-repo), so merging #318 will not auto-close this ticket. After merging #318, a human closes this ticket (or folds it into #1684's main-HEAD adoption). The remaining debt-family note: this joins #2049 (still owed) toward #1684. Ruled by agent under ADR 0174 — veto anytime. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#2113
No description provided.