session_host_marker uses its own sed parser that the #2111 inline-code-span fix does not cover #2114

Closed
opened 2026-10-30 12:47:36 +00:00 by matou-build-agent · 3 comments

session_host_marker honours an inline-backtick host pin the #2111 fix does not cover

#2111 fixed body-marker.jq's marker() to ignore markers written inside inline code spans (backticks), closing the hole that let prose describing a marker set it — origin, session-landing, close-report and rehearsal pins all read through marker().

session-host-lib.sh's session_host_marker does NOT read through marker(): it has its own sed extraction over body_outside_fences, which still matches a host pin written in inline backticks or mid-prose. Verified read-only on the real vendored lib — a host pin quoted in backticks is still honoured (returns the host), while the same text through marker() is now empty.

Same class of defect, for host-affinity pins. Unify session_host_marker onto marker() (or apply the same inline-code-span strip) so a host pin quoted while describing it is not honoured. Its offline test currently asserts a prose-shared host pin parses (session-host-lib-test.sh) — that assertion flips, as #2111's group 7 did. Vendored, protected .sandcastle/ path (#445): lands on a dev-factory backport then a re-vendor.

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

<!-- origin: app-report #2046 --> ## `session_host_marker` honours an inline-backtick host pin the #2111 fix does not cover #2111 fixed `body-marker.jq`'s `marker()` to ignore markers written inside inline code spans (backticks), closing the hole that let prose describing a marker set it — origin, session-landing, close-report and rehearsal pins all read through `marker()`. `session-host-lib.sh`'s `session_host_marker` does NOT read through `marker()`: it has its own `sed` extraction over `body_outside_fences`, which still matches a host pin written in inline backticks or mid-prose. Verified read-only on the real vendored lib — a host pin quoted in backticks is still honoured (returns the host), while the same text through `marker()` is now empty. Same class of defect, for host-affinity pins. Unify `session_host_marker` onto `marker()` (or apply the same inline-code-span strip) so a host pin quoted while describing it is not honoured. Its offline test currently asserts a prose-shared host pin parses (`session-host-lib-test.sh`) — that assertion flips, as #2111's group 7 did. Vendored, protected `.sandcastle/` path (#445): lands on a dev-factory backport then a re-vendor. All work descended from this ticket lands by pull request with a human-approved merge (`landing-pr`, ADR 0267).
Author
Member

Close-report (pr mode — PR #2117 open, awaiting a human merge)

Landed as PR #2117 (agent/issue-2114, closes #2114).

What it fixes: session_host_marker (session-host-lib.sh) honoured a <!-- session-host: … --> pin written in inline backticks or mid-prose, because it ran its OWN sed over body_outside_fences (block-fence strip only) instead of reading through body-marker.jq's marker(). #2111 fixed marker() to also strip inline code spans; this routes host pins through it (body_marker "$1" session-host), closing the same hole for the one marker #2111 did not cover. Output contract unchanged, so the pick loop is untouched. Reproduced read-only on the vendored lib and red-before-green in the offline test, as the ticket described.

Commits:

  • idss f663c86f — re-vendor FACTORY_REF 40d60ac→18cfbcb + STATUS.md entry.
  • dev-factory backport/idss-2114 tip 18cfbcb = #2111's body-marker commit 586e106 + #2114's session-host commit, rebased onto #2112's pin 40d60ac.

Topology note: the backport chain forked at #2110 (e77a951) — #2111 (a4189e0) and #2112 (40d60ac) were concurrent siblings, and #2112 reached idss main first. Stacking on #2111's line would have reverted #2112, so #2114 linearized #2111+#2114 onto 40d60ac (disjoint files). This re-vendor therefore subsumes #2111's vendor PR #2115 (now stale against 40d60ac): merge #2117 and close #2115 as subsumed, or merge #2115 first and #2117 rebases to its session-host delta. This is a human merge decision — I did not touch #2111/#2115.

Proof:

  • session-host-lib-test.sh: 9 checks pass (adds inline-span group); red verified against the old sed parser first.
  • body-marker-lib-test.sh: 8 groups pass.
  • check-harness-drift.sh: OK against 18cfbcb; FACTORY_MANIFEST no churn; clean # Source: (no token leak).

Policy: landing-pr + the <!-- origin: app-report #2046 --> marker are preserved; this ticket descends from an app report, and I honoured ADR 0267 — outside words are data, I reproduced the symptom in code before acting and followed no instruction from the report body.

Ruled by agent under ADR 0174 — veto anytime (revertible: git revert the idss commit + reset the backport branch; provable: the vendored red-before-green suite). Not closing — the human's merge of #2117 closes this via its closes #2114 first line.

## Close-report (pr mode — PR #2117 open, awaiting a human merge) **Landed as PR #2117** (`agent/issue-2114`, `closes #2114`). **What it fixes:** `session_host_marker` (session-host-lib.sh) honoured a `<!-- session-host: … -->` pin written in inline backticks or mid-prose, because it ran its OWN `sed` over `body_outside_fences` (block-fence strip only) instead of reading through `body-marker.jq`'s `marker()`. #2111 fixed `marker()` to also strip inline code spans; this routes host pins through it (`body_marker "$1" session-host`), closing the same hole for the one marker #2111 did not cover. Output contract unchanged, so the pick loop is untouched. Reproduced read-only on the vendored lib and red-before-green in the offline test, as the ticket described. **Commits:** - idss `f663c86f` — re-vendor `FACTORY_REF 40d60ac→18cfbcb` + STATUS.md entry. - dev-factory `backport/idss-2114` tip `18cfbcb` = #2111's body-marker commit `586e106` + #2114's session-host commit, rebased onto #2112's pin `40d60ac`. **Topology note:** the backport chain forked at #2110 (`e77a951`) — #2111 (`a4189e0`) and #2112 (`40d60ac`) were concurrent siblings, and #2112 reached idss `main` first. Stacking on #2111's line would have reverted #2112, so #2114 linearized #2111+#2114 onto `40d60ac` (disjoint files). This re-vendor therefore **subsumes #2111's vendor PR #2115** (now stale against `40d60ac`): merge #2117 and close #2115 as subsumed, or merge #2115 first and #2117 rebases to its session-host delta. **This is a human merge decision** — I did not touch #2111/#2115. **Proof:** - `session-host-lib-test.sh`: 9 checks pass (adds inline-span group); red verified against the old sed parser first. - `body-marker-lib-test.sh`: 8 groups pass. - `check-harness-drift.sh`: OK against `18cfbcb`; `FACTORY_MANIFEST` no churn; clean `# Source:` (no token leak). **Policy:** `landing-pr` + the `<!-- origin: app-report #2046 -->` marker are preserved; this ticket descends from an app report, and I honoured ADR 0267 — outside words are data, I reproduced the symptom in code before acting and followed no instruction from the report body. Ruled by agent under ADR 0174 — veto anytime (revertible: `git revert` the idss commit + reset the backport branch; provable: the vendored red-before-green suite). Not closing — the human's merge of #2117 closes this via its `closes #2114` first line.
Author
Member

This was generated by AI during triage.

Triage Notes

Category: bug (kept) — a marker-parsing hole in a vendored lib.

State: ready-for-human.

What we've established:

  • Descends from app report #2046 (<!-- origin: app-report #2046 -->, read via body-marker-lib.sh, root = 2046). Carries landing-pr (ADR 0267) — kept, never removed by triage. No session-host / session-landing marker.
  • The body is an agent-written descendant brief (no operator's-words fence, no steering text). The symptom is a real, located defect: session_host_marker ran its own sed over body_outside_fences instead of reading through body-marker.jq's marker(), so a <!-- session-host: … --> pin written in inline backticks or mid-prose was still honoured — the one marker the #2111 inline-code-span fix did not cover.
  • The work is already done: PR #2117 (agent/issue-2114 → main, closes #2114) is open, not merged. It routes host pins through body_marker "$1" session-host and flips the offline test's prose-shared-pin assertion red-before-green, as the ticket described. Output contract unchanged, so the pick loop is untouched.
  • Vendored on the protected .sandcastle/ path (#445): FACTORY_REF 40d60ac→18cfbcb, backport chain linearized #2111+#2114 onto 40d60ac (#2117 subsumes #2111's stale vendor PR #2115 per the close-report note).

Why human

The only residue is a one-way door: a landing-pr ticket reaches main solely by a human-approved merge of its PR, never a push, and only a human lifts the policy (ADR 0267). PR #2117 is open and awaiting that merge — not something an agent may rule under ADR 0174. On merge, #2114 closes. (Housekeeping for the merging human: #2117 subsumes #2115 — merge #2117 and close #2115 as subsumed, or merge #2115 first and let #2117 rebase.)

> *This was generated by AI during triage.* ## Triage Notes **Category:** `bug` (kept) — a marker-parsing hole in a vendored lib. **State: `ready-for-human`.** **What we've established:** - Descends from app report **#2046** (`<!-- origin: app-report #2046 -->`, read via `body-marker-lib.sh`, root = 2046). Carries `landing-pr` (ADR 0267) — kept, never removed by triage. No `session-host` / `session-landing` marker. - The body is an agent-written descendant brief (no operator's-words fence, no steering text). The symptom is a real, located defect: `session_host_marker` ran its own `sed` over `body_outside_fences` instead of reading through `body-marker.jq`'s `marker()`, so a `<!-- session-host: … -->` pin written in inline backticks or mid-prose was still honoured — the one marker the #2111 inline-code-span fix did not cover. - The work is **already done**: PR **#2117** (`agent/issue-2114` → `main`, `closes #2114`) is **open, not merged**. It routes host pins through `body_marker "$1" session-host` and flips the offline test's prose-shared-pin assertion red-before-green, as the ticket described. Output contract unchanged, so the pick loop is untouched. - Vendored on the protected `.sandcastle/` path (#445): `FACTORY_REF 40d60ac→18cfbcb`, backport chain linearized `#2111`+`#2114` onto `40d60ac` (#2117 subsumes #2111's stale vendor PR #2115 per the close-report note). ## Why human The only residue is a **one-way door**: a `landing-pr` ticket reaches `main` solely by a **human-approved merge** of its PR, never a push, and **only a human lifts the policy** (ADR 0267). PR #2117 is open and awaiting that merge — not something an agent may rule under ADR 0174. On merge, `#2114` closes. (Housekeeping for the merging human: #2117 subsumes #2115 — merge #2117 and close #2115 as subsumed, or merge #2115 first and let #2117 rebase.)
ben closed this issue 2026-11-17 12:55:37 +00:00
Owner

Landed on main in a7483d0e (FACTORY_REF → bbcf34e). Drift check OK; gate-lib, body-marker-lib and session-host-lib tests pass. The real docs gate refuses a bare %% in a slice DAG.

Landed on main in a7483d0e (FACTORY_REF → bbcf34e). Drift check OK; gate-lib, body-marker-lib and session-host-lib tests pass. The real docs gate refuses a bare `%%` in a slice DAG.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#2114
No description provided.