Repository navigation
Repair repository refresh trust boundaries #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
erinepshovel-code
merged 21 commits into
main
from
repair/repository-refresh-boundaries-20260923
Sep 25, 2026
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e8f78ee
repair(projects): restore public projection trust boundary
erinepshovel-code 2c961c7
repair(projects): discard cache on non-public repositories
erinepshovel-code 335474e
repair(projects): label unavailable documentation provenance
erinepshovel-code cfe598b
test(projects): replay trust-boundary regressions
erinepshovel-code 76f5887
docs(builder): append replay observation
erinepshovel-code b5301cd
test(builder): expect fourth journal entry
erinepshovel-code 7918d68
repair(projects): bound remote projection reads
erinepshovel-code 80eb2b5
repair(projects): resolve repository images to raw bytes
erinepshovel-code 14b75e9
repair(projects): render repository images from raw sources
erinepshovel-code 07f4cb1
repair(mcp): render repository images from raw sources
erinepshovel-code 25b0be1
repair(mcp): honor bounded repository refresh scope
erinepshovel-code 3790ae2
repair(projects): refresh only requested surfaces and provenance
erinepshovel-code 05ab645
repair(projects): bind live refresh provenance
erinepshovel-code ff59463
test(projects): cover bounded live projection boundaries
erinepshovel-code 1411e1c
test(mcp): cover scoped refresh and raw image rendering
erinepshovel-code 5614f78
repair(projects): bound GitHub API response bytes
erinepshovel-code ec63d45
test(projects): preserve synthetic response compatibility
erinepshovel-code 3555b18
test(projects): use exact URL assertions
erinepshovel-code 82230ca
test(mcp): assert exact raw image URL literally
erinepshovel-code b448019
security(projects): document pinned GitHub egress boundary
erinepshovel-code 298d1be
security(projects): retain query-specific legacy suppression
erinepshovel-code File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| // Usage: resolve repository-relative Markdown image references against raw.githubusercontent.com while ordinary links continue to target exact GitHub blob sources. | ||
| export function resolveRepositoryImageReference(value, sourceUrl) { | ||
| const reference = String(value || ''); | ||
| if (!sourceUrl || !reference || reference.startsWith('//')) return reference; | ||
| if (/^[a-z][a-z0-9+.-]*:/i.test(reference)) return reference; | ||
|
|
||
| try { | ||
| const source = new URL(sourceUrl); | ||
| const parts = source.pathname.split('/').filter(Boolean); | ||
| if (source.hostname !== 'github.com' || parts[2] !== 'blob' || !parts[3]) return reference; | ||
|
|
||
| const [owner, repo, , head, ...sourcePath] = parts; | ||
| const rawRoot = `https://raw.githubusercontent.com/${owner}/${repo}/${head}/`; | ||
| if (reference.startsWith('/')) return new URL(reference.slice(1), rawRoot).href; | ||
| if (reference.startsWith('#')) return sourceUrl + reference; | ||
|
|
||
| const basePath = sourcePath.length ? sourcePath.join('/') : ''; | ||
| return new URL(reference, new URL(basePath, rawRoot)).href; | ||
| } catch { | ||
| return reference; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.