René's URL Explorer Experiment


Title: bug: verify.schema-drift parses files_modified as an inline array only — block-sequence plans give it an empty file set · Issue #4562 · open-gsd/gsd-core · GitHub

Open Graph Title: bug: verify.schema-drift parses files_modified as an inline array only — block-sequence plans give it an empty file set · Issue #4562 · open-gsd/gsd-core

X Title: bug: verify.schema-drift parses files_modified as an inline array only — block-sequence plans give it an empty file set · Issue #4562 · open-gsd/gsd-core

Description: Summary verify.schema-drift extracts its file list from plan frontmatter with a regex that only matches an inline array. Plans written with a YAML block sequence — which is what gsd-planner itself emits — never match, so the gate inspect...

Open Graph Description: Summary verify.schema-drift extracts its file list from plan frontmatter with a regex that only matches an inline array. Plans written with a YAML block sequence — which is what gsd-planner itself ...

X Description: Summary verify.schema-drift extracts its file list from plan frontmatter with a regex that only matches an inline array. Plans written with a YAML block sequence — which is what gsd-planner itself ...

Opengraph URL: https://github.com/open-gsd/gsd-core/issues/4562

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: verify.schema-drift parses files_modified as an inline array only — block-sequence plans give it an empty file set","articleBody":"## Summary\n\n`verify.schema-drift` extracts its file list from plan frontmatter with a regex that only matches an **inline** array. Plans written with a YAML **block sequence** — which is what `gsd-planner` itself emits — never match, so the gate inspects zero files and returns `block: false` without checking anything.\n\nThe gate is declared `blocking: true` at `execute:wave:post`, so this is a silent pass on a gate that is meant to stop a wave.\n\n## The code\n\n`bin/lib/verify.cjs`, in `cmdVerifySchemaDrift` (~line 1959):\n\n```js\nconst fmMatch = content.match(/files_modified:\\s*\\[([^\\]]{0,8000})\\]/);\n```\n\nThe `\\[` requires an inline array:\n\n```yaml\nfiles_modified: [a.py, b.py]     # matches\n```\n\nBut a block sequence has no `[`:\n\n```yaml\nfiles_modified:                  # does NOT match\n  - backend/app/models/job.py\n  - backend/app/services/queue.py\n```\n\n`fmMatch` is `null`, nothing is pushed to `allFiles`, and `checkSchemaDrift([], executionLog)` early-returns at `schema-detect.cjs:86` on `detectSchemaFiles([]).detected === false` — **before** the loop that reads `executionLog`. So neither of the function's two inputs is consulted.\n\n## Reproduction\n\nOn a phase whose plans use block-sequence `files_modified`:\n\n```\n$ gsd-tools query check verify.schema-drift 01 --raw\n{\n  \"block\": false,\n  \"drift_detected\": false,\n  \"blocking\": false,\n  \"schema_files\": [],\n  \"orms\": [],\n  \"unpushed_orms\": [],\n  \"message\": \"\",\n  \"skipped\": false\n}\n```\n\nMatching the regex against every plan in the phase directly:\n\n```\nplans whose files_modified the regex MATCHED: 0\nplans whose files_modified it MISSED:        12\n```\n\nThe empty `schema_files` / `orms` are the only tell that the gate did no work — the verdict alone is indistinguishable from a real pass.\n\n## Why this is likely to be widespread\n\n`gsd-planner` emits block-sequence `files_modified`. Every plan in the affected project was produced by GSD's own planner, so any project on that default format has a permanently green blocking gate. `phase-plan-index` parses the same field correctly, so the two disagree about what a plan declares.\n\n## Suggested fix\n\nAccept both forms where `files_modified` is read, ideally via one shared parser rather than a second regex. A block-sequence branch:\n\n```js\nconst block = content.match(/^files_modified:[ \\t]*\\n((?:[ \\t]+-[ \\t]*.+\\n)+)/m);\n```\n\n## Separate note — not part of this bug\n\nAfter fixing the parse locally and feeding the gate 135 correctly-parsed entries, it still returns `schemaFiles: []`. `SCHEMA_PATTERNS` (`schema-detect.cjs:17-28`) covers five JS/TS ORMs — payload, prisma, drizzle, supabase, typeorm — and no Python ORM at all, so SQLAlchemy/Alembic projects get no coverage either way. That is a feature gap rather than a defect and is not what this issue asks you to fix; flagging it only so the parse fix is not mistaken for full coverage on a Python backend.\n\nFound on `@opengsd/gsd-core` 1.13.0.","author":{"url":"https://github.com/Vince-Cercury","@type":"Person","name":"Vince-Cercury"},"datePublished":"2026-09-09T07:14:45Z","url":"https://github.com/open-gsd/gsd-core/issues/4562"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f42070ba-4920-d99d-afa9-e6aa6c38c28f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8F72:2973C7:1E422B4:27E41F7:6AEDA2AC
html-safe-noncee02eec00999ace6675cc5e49f8551b7bd529eb36dc5fd8136761e40aa0961c95
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjcyOjI5NzNDNzoxRTQyMkI0OjI3RTQxRjc6NkFFREEyQUMiLCJ2aXNpdG9yX2lkIjoiMjAzNDM5OTU1MzE4NzA2MjQ0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac804b509240e6fd852cd2925b15e0eaa9d22ec587a865003167e5e14f82e0f18f
hovercard-subject-tagissue:5396274814
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/open-gsd/gsd-core/4562/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4f6028a6e3b2ba9d63669eef41297b363024f08eece7abf58ad492151b5ab54e/open-gsd/gsd-core/issues/4562
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4f6028a6e3b2ba9d63669eef41297b363024f08eece7abf58ad492151b5ab54e/open-gsd/gsd-core/issues/4562
og:image:altSummary verify.schema-drift extracts its file list from plan frontmatter with a regex that only matches an inline array. Plans written with a YAML block sequence — which is what gsd-planner itself ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameVince-Cercury
hostnamegithub.com
expected-hostnamegithub.com
None9f51e3b6c7a190e426e641ae15acbc58dd1ac2003e96b58879bbc298e213dbf3
turbo-cache-controlno-preview
go-importgithub.com/open-gsd/gsd-core git https://github.com/open-gsd/gsd-core.git
octolytics-dimension-user_id286935422
octolytics-dimension-user_loginopen-gsd
octolytics-dimension-repository_id1246625636
octolytics-dimension-repository_nwoopen-gsd/gsd-core
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1246625636
octolytics-dimension-repository_network_root_nwoopen-gsd/gsd-core
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7060660810b587033ea861b8aa67beb72c8e6542
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/open-gsd/gsd-core/issues/4562#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopen-gsd%2Fgsd-core%2Fissues%2F4562
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopen-gsd%2Fgsd-core%2Fissues%2F4562
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=open-gsd%2Fgsd-core
Reloadhttps://github.com/open-gsd/gsd-core/issues/4562
Reloadhttps://github.com/open-gsd/gsd-core/issues/4562
Reloadhttps://github.com/open-gsd/gsd-core/issues/4562
open-gsdhttps://github.com/open-gsd
gsd-corehttps://github.com/open-gsd/gsd-core
Codehttps://github.com/open-gsd/gsd-core
Issues236 (236)https://github.com/open-gsd/gsd-core/issues
Pull requests78 (78)https://github.com/open-gsd/gsd-core/pulls
Discussionshttps://github.com/open-gsd/gsd-core/discussions
Actionshttps://github.com/open-gsd/gsd-core/actions
Projectshttps://github.com/open-gsd/gsd-core/projects
Security and qualityhttps://github.com/open-gsd/gsd-core/security
Insightshttps://github.com/open-gsd/gsd-core/pulse
https://github.com/open-gsd/gsd-core
New issuehttps://github.com/login?return_to=https://github.com/open-gsd/gsd-core/issues/4562
New issuehttps://github.com/login?return_to=https://github.com/open-gsd/gsd-core/issues/4562
bug: verify.schema-drift parses files_modified as an inline array only — block-sequence plans give it an empty file sethttps://github.com/open-gsd/gsd-core/issues/4562#top
bugSomething isn't workinghttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22bug%22
confirmed-bugVerified reproducible bughttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
duplicateThis issue or pull request already existshttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22duplicate%22
https://github.com/Vince-Cercury
Vince-Cercuryhttps://github.com/Vince-Cercury
on Sep 9, 2026https://github.com/open-gsd/gsd-core/issues/4562#issue-5396274814
github-actionshttps://github.com/apps/github-actions
needs-triageNew issue awaiting maintainer reviewhttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22needs-triage%22
on Sep 9, 2026https://github.com/open-gsd/gsd-core/issues/4562#event-30809567401
https://github.com/trek-e
trek-ehttps://github.com/trek-e
on Sep 9, 2026https://github.com/open-gsd/gsd-core/issues/4562#issuecomment-5602951860
https://github.com/trek-e
trek-ehttps://github.com/trek-e
on Sep 9, 2026https://github.com/open-gsd/gsd-core/issues/4562#issuecomment-5602952044
trek-ehttps://github.com/trek-e
bugSomething isn't workinghttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22bug%22
confirmed-bugVerified reproducible bughttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
needs-triageNew issue awaiting maintainer reviewhttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22needs-triage%22
on Sep 9, 2026https://github.com/open-gsd/gsd-core/issues/4562#event-30833164763
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Sep 9, 2026https://github.com/open-gsd/gsd-core/issues/4562#issuecomment-5602955970
GitHub Actionshttps://help.github.com/en/actions
https://github.com/trek-e
trek-ehttps://github.com/trek-e
on Sep 11, 2026https://github.com/open-gsd/gsd-core/issues/4562#issuecomment-5635569077
#4631https://github.com/open-gsd/gsd-core/issues/4631
#1372https://github.com/open-gsd/gsd-core/issues/1372
#2143https://github.com/open-gsd/gsd-core/issues/2143
#2121https://github.com/open-gsd/gsd-core/issues/2121
#4631https://github.com/open-gsd/gsd-core/issues/4631
trek-ehttps://github.com/trek-e
duplicateThis issue or pull request already existshttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22duplicate%22
on Sep 11, 2026https://github.com/open-gsd/gsd-core/issues/4562#event-30976635103
trek-ehttps://github.com/trek-e
duplicatehttps://github.com/open-gsd/gsd-core/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Aduplicate
on Sep 11, 2026https://github.com/open-gsd/gsd-core/issues/4562#event-30976635767
trek-ehttps://github.com/trek-e
on Oct 2, 2026https://github.com/open-gsd/gsd-core/issues/4562#event-32334476134
fix(#5170): schema-drift reads files_modified through the Frontmatter…https://github.com/open-gsd/gsd-core/commit/0fee8aafd31ee53150e8d6993df7757c70734adf
#5170https://github.com/open-gsd/gsd-core/issues/5170
0fee8aahttps://github.com/open-gsd/gsd-core/commit/0fee8aafd31ee53150e8d6993df7757c70734adf
fix(#5170): schema-drift reads files_modified through the Frontmatter…https://github.com/open-gsd/gsd-core/commit/e3f5403fda71509391037b5bdc155689e131b1f0
#5170https://github.com/open-gsd/gsd-core/issues/5170
e3f5403https://github.com/open-gsd/gsd-core/commit/e3f5403fda71509391037b5bdc155689e131b1f0
refactor(#5170): typed gate evidence and a verdict-driven exit status…https://github.com/open-gsd/gsd-core/commit/84b4dfe84f35e58d4b35d57a54bd92af1b21fbce
#5170https://github.com/open-gsd/gsd-core/issues/5170
84b4dfehttps://github.com/open-gsd/gsd-core/commit/84b4dfe84f35e58d4b35d57a54bd92af1b21fbce
Sign up for freehttps://github.com/signup?return_to=https://github.com/open-gsd/gsd-core/issues/4562
Sign in to commenthttps://github.com/login?return_to=https://github.com/open-gsd/gsd-core/issues/4562
bugSomething isn't workinghttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22bug%22
confirmed-bugVerified reproducible bughttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
duplicateThis issue or pull request already existshttps://github.com/open-gsd/gsd-core/issues?q=state%3Aopen%20label%3A%22duplicate%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.