Title: fix(workflow): trigger-issue drafts with an inner code fence escape the #391 link check — fenced_blocks() splits the draft at the inner fence · Issue #393 · developing-today/code · GitHub
Open Graph Title: fix(workflow): trigger-issue drafts with an inner code fence escape the #391 link check — fenced_blocks() splits the draft at the inner fence · Issue #393 · developing-today/code
X Title: fix(workflow): trigger-issue drafts with an inner code fence escape the #391 link check — fenced_blocks() splits the draft at the inner fence · Issue #393 · developing-today/code
Description: Finding PR #391 (commit 0a843b644f2d088deba5885dd21950733c64d3bb, merged as 6c027ad1) extended scripts/research_workflow.py so links inside fenced trigger-issue drafts are checked. The new parser still misses a realistic draft shape: a d...
Open Graph Description: Finding PR #391 (commit 0a843b644f2d088deba5885dd21950733c64d3bb, merged as 6c027ad1) extended scripts/research_workflow.py so links inside fenced trigger-issue drafts are checked. The new parser s...
X Description: Finding PR #391 (commit 0a843b644f2d088deba5885dd21950733c64d3bb, merged as 6c027ad1) extended scripts/research_workflow.py so links inside fenced trigger-issue drafts are checked. The new parser s...
Opengraph URL: https://github.com/developing-today/code/issues/393
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(workflow): trigger-issue drafts with an inner code fence escape the #391 link check — fenced_blocks() splits the draft at the inner fence","articleBody":"## Finding\n\nPR #391 (commit `0a843b644f2d088deba5885dd21950733c64d3bb`, merged as `6c027ad1`) extended `scripts/research_workflow.py` so links inside fenced trigger-issue drafts are checked. The new parser still misses a realistic draft shape: **a draft that contains its own inner fenced code block**.\n\n`fenced_blocks()` (`scripts/research_workflow.py:428`) closes the outer ```` ```markdown ```` draft at the first inner fence line, and `issue_drafts()` (`scripts/research_workflow.py:445`) only treats a fragment as a draft when that same fragment contains the `workflow:issue` marker. The marker is a *trailing* comment (per `.agents/skills/issue-handoff/SKILL.md`: \"the trailing machine comment\"), so in a draft shaped like:\n\n````markdown\n```markdown\n# Draft\n- Concept Document: [concept](missing/nope.md)\n```python\nprint(1)\n```\n\u003c!-- workflow:issue {...} -->\n```\n````\n\nthe parse produces two fragments — `['# Draft\\n- [concept](missing/nope.md)', '\u003c!-- workflow:issue {...} -->']` — neither of which is both \"a draft\" and \"carrying the pointer\". The pointer fragment has no marker; the marker fragment has no links. `links()` (`scripts/research_workflow.py:469`) therefore never checks the pointer.\n\nA related case in the same function: an **unclosed** draft fence is dropped entirely (`fenced_blocks()` only appends a block when it sees the closing fence), so that draft also escapes the check silently.\n\n## Evidence (verified against current main, `6c027ad1`)\n\nEnd-to-end through `links()` on a temp package, with the same broken pointer `missing/nope.md` in all three shapes:\n\n- Control — no inner fence: raises `missing link target: missing/nope.md` ✅ (the #391 fix works here)\n- Inner ```` ```python ```` block between the pointer and the trailing marker: **no error** ❌\n- Unclosed draft fence: **no error** ❌\n\nDirect parser output for the nested shape: `fenced_blocks()` → `['# Draft\\n- [bad](missing/nope.md)', '\u003c!-- workflow:issue {} -->']`, `issue_drafts()` → `['']` (only the comment-stripped marker fragment).\n\nThis is exactly the failure class #382 / PR #391 set out to eliminate — a dead Context Pointer in a trigger-issue draft that `research_workflow.py check` reports as ok — just triggered by draft content (an embedded code block) rather than by the fence itself. Drafts routinely embed code/examples, so this is not an exotic shape.\n\nSingle-repo: `scripts/research_workflow.py` exists only in developing-today/code (confirmed in PR #391's body and by checking the other three repos).\n\n## Why it matters\n\nThe checker's guarantee after #391 reads as \"trigger-issue draft links are validated\". Any future draft that includes a code fence before its trailing marker silently loses that guarantee, and the first symptom is a dead pointer discovered by a human after the issue is created — the outcome #382 was filed to prevent.\n\n## Acceptance criteria\n\n- [ ] A regression test in `scripts/tests/test_research_workflow.py`: a fenced draft whose broken pointer appears before an inner fenced code block (marker trailing, after the inner block) fails `check`; the same draft with valid pointers passes.\n- [ ] A regression test: a draft in an unclosed fence does not silently pass — it is either checked or reported as a malformed/unclosed fence.\n- [ ] The fix does not weaken the existing exemption for non-draft fenced blocks (raw transcript evidence/code stay unchecked, as `unfenced()` documents), and template placeholders (`{{…}}`) remain skipped.\n- [ ] Full workflow suite still passes: `python3 -m unittest discover -s scripts/tests -p 'test_*workflow*.py'`.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-20T06:23:04Z","url":"https://github.com/developing-today/code/issues/393"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b546afc4-44ac-b84b-38e4-618bfd93de37 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECB4:4E4E7:A8C7B0:DB582C:6B0638E5 |
| html-safe-nonce | 9b0da662f7338edb991fc3c2ce0766c24133f6249328d78687d52a752ce30fc5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0I0OjRFNEU3OkE4QzdCMDpEQjU4MkM6NkIwNjM4RTUiLCJ2aXNpdG9yX2lkIjoiMTEwNDUxODE4NzA0OTE3MTE3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 50892eb2d8dd2b838193bf335f724a1b354df91cc91c7411083533331bc8275d |
| hovercard-subject-tag | issue:5936989210 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/393/issue_layout |
| twitter:image | https://opengraph.githubassets.com/381c11c14bf733c3e034109186c1a09d74501b1b286b8a44d3e52d570368e37f/developing-today/code/issues/393 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/381c11c14bf733c3e034109186c1a09d74501b1b286b8a44d3e52d570368e37f/developing-today/code/issues/393 |
| og:image:alt | Finding PR #391 (commit 0a843b644f2d088deba5885dd21950733c64d3bb, merged as 6c027ad1) extended scripts/research_workflow.py so links inside fenced trigger-issue drafts are checked. The new parser s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | dcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0f38f5735226749ec5e08a8649dce4cb2613d9ad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width