Repository navigation
fix(build): ship /worlds source route in packaged images (OSS-381) - #530
Merged
Merged
Conversation
The broad worlds/Worlds exclusions in .dockerignore stripped the SvelteKit /worlds route source from packaged frontend builds, so the served bundle had no /worlds route. Move the exclusions above the general sensitive/persistent rules and add a narrow source-only re-include limited to .svelte/.ts files, so credential, database and nested data files under the route tree stay excluded. Extend the Docker-context policy fixture with route-include assertions and sentinel canaries that catch a leaky re-include ordering.
Extend the OSS-381 route-tree sentinel matrix with .pem, .p12, config.yaml, .mcp.json and node_modules canaries so a future broad re-include cannot leak any credential, config or generated dependency type under the source route.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Defect
The live packaged image returned Svelte "Page not found" for
/worlds: theserved production bundle (
app.aQAtqdjs.jsat imaged8597d4e) contained/library,/players,/serversbut no/worlds, even though the sourceroutes exist. Root cause: the broad
worlds/**/worlds/Worlds/**/Worldspatterns in.dockerignoreremovedweb/carbon-panel/src/routes/worlds/from the Docker build context, so thefrontend builder never saw the route source.
Fix
worldsignore block above the general sensitive/persistentexclusions in
.dockerignore, so later credential/database/data rules stillwin for anything nested under the route tree.
(
!web/carbon-panel/src/routes/worlds/**/*.svelteand.../*.ts) rather thana broad
**negation. All saved-world exclusions (data/, backups/, tmp/,instance world folders, root/nested worlds dirs) are preserved.
scripts/test-ignore-policies.pywith:.env,route.db,token.key,nested
data/worlds,backups,tmp) that must remain excluded.Verification evidence
Evidence directory:
C:/Users/Daybreak8458/Documents/Codex/2026-11-12/carbonpanel-main-audit/oss381-evidence/route-manifest-before.txt— served route table from the actual packedfrontend-builderimage at the pre-fix source: 18 routes, no/worlds.route-manifest-final.txt— served route table from the actual packedfrontend-builderimage after the fix:/worldsand/worlds/[server]/[world]present.python scripts/test-ignore-policies.py --dockeragainst the WSL Docker daemon — PASS: Git ignore matrix (56 excluded, 14
included); PASS: clean and cluttered Docker contexts match (1706 files).
Regression proof: with the broad trailing negation restored, the check fails
listing all eleven leaked route-tree sentinels; with the narrow ordered fix it
passes.
docker build -f docker/Dockerfile.carbon-panelPASS;module images
geyserandstatusPASS.bun install --frozen-lockfilePASS,bun run check0 errors/ 0 warnings,
bun run test360 pass / 0 fail,bun run lintPASS.go run ./cmd/knowledge-lint -root . -fixthen without-fix—OK: 64 concept(s), indexes current, 38/38 queries pass.
Real-browser QA (actual packaged production image)
Full packaged image
carbon-panel:oss381-qa-final(built from this branch withthe fix) run as two disposable containers with isolated named volumes and a
synthetic admin account — no live user data. Task-owned Chromium 1.49.1,
PLAYWRIGHT_SKIP_BROWSER_GC=1.browser/report.jsonand screenshotsbrowser/01-*.png…browser/06-*.png:/worldslink present andnavigates; direct load; refresh; deep link into
/worlds/[server]/[world]— all render the real Worlds UI (no "Page not found"), EMPTY state
"No viewable worlds" and onboarding world-detail state.
"No world-view access" with no redirect to
/login.Scope
No release/deployment/registry mutation. Do not merge until independent review
is recorded.