René's URL Explorer Experiment


Title: feat: registry query layer — shared foundation for layout manifest (#670) and impact analysis (#733) · Issue #748 · github/squad · GitHub

Open Graph Title: feat: registry query layer — shared foundation for layout manifest (#670) and impact analysis (#733) · Issue #748 · github/squad

X Title: feat: registry query layer — shared foundation for layout manifest (#670) and impact analysis (#733) · Issue #748 · github/squad

Description: Summary PRD: docs/proposals/registry-query-layer.md PR #737 ships .squad/repo-registry.json with module/owner/package/criticality data and low-level utilities. But both #670 (versioned file layout manifest) and #733 (PR impact analysis) ...

Open Graph Description: Summary PRD: docs/proposals/registry-query-layer.md PR #737 ships .squad/repo-registry.json with module/owner/package/criticality data and low-level utilities. But both #670 (versioned file layout ...

X Description: Summary PRD: docs/proposals/registry-query-layer.md PR #737 ships .squad/repo-registry.json with module/owner/package/criticality data and low-level utilities. But both #670 (versioned file layout ...

Opengraph URL: https://github.com/github/squad/issues/748

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: registry query layer — shared foundation for layout manifest (#670) and impact analysis (#733)","articleBody":"## Summary\n\n**PRD:** `docs/proposals/registry-query-layer.md`\n\nPR #737 ships `.squad/repo-registry.json` with module/owner/package/criticality data and low-level utilities. But both #670 (versioned file layout manifest) and #733 (PR impact analysis) need a **query and analysis layer** on top of that data — and they need the **same** one, or they'll diverge on file resolution, criticality scoring, and owner mapping.\n\nThis issue tracks building `scripts/registry-query.mjs`: a set of pure functions that take the repo registry + a list of file paths and return structured analysis (modules touched, owners involved, criticality distribution, risk tier, boundary crossings).\n\n## Why This Must Be One Shared Foundation\n\n1. **Single resolution algorithm.** File→module uses longest-prefix matching. Independent implementations will disagree on edge cases (nested modules like `src/cli/shell/` vs `src/cli/`).\n2. **Single criticality model.** Both need the same tier definitions and scoring.\n3. **Single owner resolution.** #670 needs it for validation diagnostics; #733 needs it for reviewer routing.\n4. **Composability.** Pure function: `analyzeFiles(registry, filePaths) → AnalysisResult`. #670 calls it with expected files; #733 calls it with PR diff files.\n\n## API Surface\n\n- `loadRegistry(path?)` — load and parse repo-registry.json\n- `resolveFile(filePath, registry)` — single file → module/owner/package/tier\n- `analyzeFiles(filePaths, registry)` — batch analysis with aggregates\n- `computeRiskTier(analysis, diffStats?)` — LOW/MEDIUM/HIGH/CRITICAL per #733's criteria\n- `getInvolvedOwners(analysis)` — deduplicated, ranked owner list\n\n## Depends On\n\n- **PR #737** (repo-registry) — must merge first; provides data source + low-level utils\n\n## Feeds Into\n\n- **#670** — versioned file layout manifest (uses query layer for criticality + template resolution)\n- **#733** — PR impact analysis (uses query layer for batch analysis + risk scoring + reviewer routing)\n\n## Acceptance Criteria\n\nSee full PRD at `docs/proposals/registry-query-layer.md` for detailed criteria. Key gates:\n\n- [ ] `scripts/registry-query.mjs` with 5 exported functions\n- [ ] Correct resolution for all path types (source modules, nested modules, critical files, templates, unknown)\n- [ ] `analyzeFiles()` aggregates match expected output for PR #631 (361 files → 18+ modules)\n- [ ] `computeRiskTier()` implements #733's exact threshold criteria\n- [ ] `test/registry-query.test.ts` with ≥20 test cases\n- [ ] Manual integration test against real PR diff\n\n## File Layout\n\n`\nscripts/registry-query.mjs        ← NEW (this issue)\ntest/registry-query.test.ts       ← NEW (this issue)\n`\n\nBuilds on top of #737's `scripts/registry-utils.mjs` and `.squad/repo-registry.json`.","author":{"url":"https://github.com/diberry","@type":"Person","name":"diberry"},"datePublished":"2026-04-02T16:52:20Z","url":"https://github.com/github/squad/issues/748"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:de8cf8ec-cdfe-a4a4-3dc0-5e91947a747d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEAA2:317608:267EE63:30B8465:6B018D4E
html-safe-nonce8b925c32b7b7ebeed93dd8657da707685f66d064fde07609789c4d0606ace083
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUEyOjMxNzYwODoyNjdFRTYzOjMwQjg0NjU6NkIwMThENEUiLCJ2aXNpdG9yX2lkIjoiNzU3Mzc0NjA4NzQ3NTkwNzkxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac92134787378c2cd7d205ebb9913e022336d9a227df7f64639f74c1982dc066df
hovercard-subject-tagissue:4195793755
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/github/squad/748/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a1ad803c730efce14a84f6f0ae9904e4f46d97360f13c1a0a0cfc9dbdfb8307a/github/squad/issues/748
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a1ad803c730efce14a84f6f0ae9904e4f46d97360f13c1a0a0cfc9dbdfb8307a/github/squad/issues/748
og:image:altSummary PRD: docs/proposals/registry-query-layer.md PR #737 ships .squad/repo-registry.json with module/owner/package/criticality data and low-level utilities. But both #670 (versioned file layout ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamediberry
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/github/squad git https://github.com/github/squad.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id1151205052
octolytics-dimension-repository_nwogithub/squad
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1151205052
octolytics-dimension-repository_network_root_nwogithub/squad
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/squad/issues/748#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fsquad%2Fissues%2F748
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%2Fgithub%2Fsquad%2Fissues%2F748
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=github%2Fsquad
Reloadhttps://github.com/github/squad/issues/748
Reloadhttps://github.com/github/squad/issues/748
Reloadhttps://github.com/github/squad/issues/748
githubhttps://github.com/github
squadhttps://github.com/github/squad
Codehttps://github.com/github/squad
Issues108 (108)https://github.com/github/squad/issues
Pull requests26 (26)https://github.com/github/squad/pulls
Discussionshttps://github.com/github/squad/discussions
Actionshttps://github.com/github/squad/actions
Projectshttps://github.com/github/squad/projects
Security and qualityhttps://github.com/github/squad/security
Insightshttps://github.com/github/squad/insights
https://github.com/github/squad
New issuehttps://github.com/login?return_to=https://github.com/github/squad/issues/748
New issuehttps://github.com/login?return_to=https://github.com/github/squad/issues/748
feat: registry query layer — shared foundation for layout manifest (#670) and impact analysis (#733)https://github.com/github/squad/issues/748#top
enhancementNew feature or improvementhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/diberry
diberryhttps://github.com/diberry
on Apr 2, 2026https://github.com/github/squad/issues/748#issue-4195793755
#737https://github.com/github/squad/pull/737
#670https://github.com/github/squad/issues/670
#733https://github.com/github/squad/issues/733
PRD: Versioned file layout manifest - single source of truth for directory structure #670https://github.com/github/squad/issues/670
feat: PR architectural impact analysis — blast radius, module boundaries, reviewer routing #733https://github.com/github/squad/issues/733
PRD: Versioned file layout manifest - single source of truth for directory structure #670https://github.com/github/squad/issues/670
feat: PR architectural impact analysis — blast radius, module boundaries, reviewer routing #733https://github.com/github/squad/issues/733
feat: PR architectural impact analysis — blast radius, module boundaries, reviewer routing #733https://github.com/github/squad/issues/733
feat(registry): add repo registry — machine-readable module/file/owner/criticality map #737https://github.com/github/squad/pull/737
PRD: Versioned file layout manifest - single source of truth for directory structure #670https://github.com/github/squad/issues/670
feat: PR architectural impact analysis — blast radius, module boundaries, reviewer routing #733https://github.com/github/squad/issues/733
P0: @copilot accidentally deleted 361 source files on dev (commit 1ab2f5c) #631https://github.com/github/squad/issues/631
feat: PR architectural impact analysis — blast radius, module boundaries, reviewer routing #733https://github.com/github/squad/issues/733
#737https://github.com/github/squad/pull/737
diberryhttps://github.com/diberry
enhancementNew feature or improvementhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Apr 2, 2026https://github.com/github/squad/issues/748#event-24154874656
diberryhttps://github.com/diberry
on Apr 2, 2026https://github.com/github/squad/issues/748#event-24155203753
feat(scripts): registry query layer — shared foundation for #670 and #…https://github.com/github/squad/commit/3109951338924d518ca6f249334b7c01c264c2b4
#670https://github.com/github/squad/issues/670
#…https://github.com/github/squad/issues/733
3109951https://github.com/github/squad/commit/3109951338924d518ca6f249334b7c01c264c2b4
fix(scripts): address PR review feedback on registry query layer (#748)https://github.com/github/squad/commit/0812ba15ce353ec045be980eec20dc4d848fe1ea
#748https://github.com/github/squad/issues/748
0812ba1https://github.com/github/squad/commit/0812ba15ce353ec045be980eec20dc4d848fe1ea
https://github.com/diberry
diberryhttps://github.com/diberry
on Apr 6, 2026https://github.com/github/squad/issues/748#issuecomment-4193983167
PRD: Versioned file layout manifest - single source of truth for directory structure #670https://github.com/github/squad/issues/670
feat: PR architectural impact analysis — blast radius, module boundaries, reviewer routing #733https://github.com/github/squad/issues/733
feat(registry): add repo registry — machine-readable module/file/owner/criticality map #737https://github.com/github/squad/pull/737
feat: repo registry — machine-readable module/file/owner/criticality map #736https://github.com/github/squad/issues/736
feat(registry): add repo registry — machine-readable module/file/owner/criticality map #737https://github.com/github/squad/pull/737
PRD: Versioned file layout manifest - single source of truth for directory structure #670https://github.com/github/squad/issues/670
feat: PR architectural impact analysis — blast radius, module boundaries, reviewer routing #733https://github.com/github/squad/issues/733
#736https://github.com/github/squad/issues/736
https://github.com/diberry
diberryhttps://github.com/diberry
on Apr 8, 2026https://github.com/github/squad/issues/748#issuecomment-4203296625
#737https://github.com/github/squad/pull/737
#749https://github.com/github/squad/pull/749
diberryhttps://github.com/diberry
completedhttps://github.com/github/squad/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 8, 2026https://github.com/github/squad/issues/748#event-24279359539
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/squad/issues/748
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/squad/issues/748
enhancementNew feature or improvementhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22enhancement%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.