Skip to content

armgit / kiln

Public Imported from GitHub
0

Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.

Fix public text encoding and scene preview coverage (#138)

Matthew Kissinger7d4993260008
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index 68bcb633..7cfcb67c 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -17,6 +17,7 @@ on:
paths:
- 'examples/**'
- 'site/**'
+ - 'scenes/**'
- 'docs/**'
- 'skills/**'
- 'bun.lock'
@@ -30,6 +31,7 @@ on:
paths:
- 'examples/**'
- 'site/**'
+ - 'scenes/**'
- 'docs/**'
- 'skills/**'
- 'bun.lock'
diff --git a/docs/plans/2026-10-05-site-text-and-preview-cleanup.md b/docs/plans/2026-10-05-site-text-and-preview-cleanup.md
new file mode 100644
index 00000000..ba82cf24
--- /dev/null
+++ b/docs/plans/2026-10-05-site-text-and-preview-cleanup.md
@@ -0,0 +1,157 @@
+# Site text and preview cleanup
+
+Date: 5 October 2026. Analysis and proposed implementation; no site fixes or new
+deployment have been made for this plan. Baseline: main `b3cc5048d362fb73324dcab5fb6ff636cb6d6614`,
+production Troy `troy-20261005-06` and Bridge `g9-code5`.
+
+## End state
+
+All public Kiln pages and scene controls display readable text, including loading,
+progress, secondary controls and errors. The homepage includes Troy's coast and
+battle pictures alongside the other scenes. Foundry Floor previews show its campus
+buildings as well as its equipment. Automated checks catch encoding damage before
+publication, and the corrected release preserves existing assets, gameplay and
+runtime performance.
+
+## Confirmed findings
+
+| Location | Finding | Action |
+| --- | --- | --- |
+| `scenes/packages/troy/web/index.html:36` | Initial loading ellipsis is already corrupted in the saved HTML. | Correct maintained markup. |
+| `scenes/packages/troy/web/main.mjs:180,203,212,217` | Eight corrupted separator occurrences in scene details, landing playback, hero playback/fight and gate status. | Correct those display strings. |
+| `site/src/components/troy-scene-session.ts:80` | Corrupted ellipsis in the progress fallback. | Correct the fallback and assert its actual output. |
+| Published Troy `web/index.html`, `web/main.mjs`, `web/bundle/main.js` and the site's compiled Troy session chunk | The same saved defects are delivered on HTTPS; hashes match the production artifact manifest. | Rebuild from corrected source and publish a new immutable scene release. |
+| Published Bridge `terrain/manifest.json` | Invalid UTF-8. Three descriptive fields contain legacy bytes for plus/minus and squared symbols. Windows-1252 decoding recovers their intended text; normal UTF-8 decoding inserts replacement characters. | Repair the input metadata, validate it at staging and seal a fresh Bridge derivative. Preserve all numeric fields and terrain/model bytes. |
+| `site/src/pages/index.astro`, section headed "The saved work is yours to inspect." | Its scene cards are Farm, Bridge and Foundry; Troy is absent. Confirmed on the live homepage. | Add Troy using its existing coast and battle posters and pack/scene links. |
+| `site/src/pages/packs/index.astro` | Foundry's six selected thumbnails are EUV scanner, etch tool, furnace, stocker, OHT vehicle and FOUP. None represents its architecture. | Include campus/building imagery in the pack introduction. |
+| `site/src/components/FoundryFloorPack.astro` | Building models are present further down in the grouped inventory, but there is no campus picture leading the pack page. | Add a clear architectural introduction above the inventory. |
+
+The repository scan covered 3,771 tracked text files, all valid UTF-8. That does
+not mean their strings are correct: already-corrupted text can itself be valid
+UTF-8. Additional hits occur in one historical review document and two workspace
+test directory names. Those are separate from the public scene UI.
+
+The expanded artifact audit covered 2,439 text resources from the exact production
+manifest. It checked raw text and parsed JavaScript string/template values, so
+escaped characters in minified bundles are included. There were no JavaScript
+parse failures. Its confirmed hits are the Troy copies and Bridge metadata above.
+This inventory does not establish that every live interaction is clean. The
+owner has observed other scene/control occurrences; interactive coverage across
+all four scenes remains part of implementation acceptance, including cold and
+cached sessions and both renderers.
+
+## Why it happens
+
+The Troy strings exhibit mojibake: UTF-8 bytes interpreted through a legacy
+encoding and then saved again, sometimes more than once. A reproducible example
+is U+2026 (ellipsis): its UTF-8 bytes decoded as Windows-1252 produce the exact
+first-stage corruption in the site fallback; repeating the operation produces
+the damaged Troy HTML ellipsis. The middle-dot prefixes show additional encoding
+damage around an otherwise correct U+00B7 separator.
+
+The malformed literals are in Git and the served artifacts. Troy's HTML already
+declares UTF-8 and its HTTPS response is `text/html; charset=utf-8`; its served
+bytes match the build. The confirmed defect therefore precedes delivery. A
+changed font, cache purge or charset header cannot reconstruct these literals.
+The exact editor or command that first damaged them has not been established.
+
+Bridge has a different failure mode: its input JSON was saved with legacy bytes,
+and existing readers/staging checks do not reject invalid UTF-8. Both cases need
+coverage: valid-but-corrupted strings and invalid byte sequences.
+
+The existing page copy checks cover number spacing, licence spelling and review
+status. Functional browser checks catch script/network errors. Neither currently
+asserts that displayed control text is free of encoding damage, which explains
+how the release could pass those checks.
+
+Standards: [WHATWG Encoding](https://encoding.spec.whatwg.org/) defines UTF-8 and
+legacy decoding; [HTML character encoding declarations](https://html.spec.whatwg.org/multipage/semantics.html#charset)
+define document charset handling. UTF-8 should remain the transport and file
+encoding throughout.
+
+## Implementation order
+
+1. **Complete the interaction inventory.** Inspect Farm, Vehicles asset previews,
+ Bridge, Foundry and Troy on the live site and matching local build. Exercise
+ loading/progress, More/secondary controls, view changes, timeline labels,
+ input modes, quality choices and error/fallback states. Inspect both WebGPU
+ and WebGL2, and compare cold/cached sessions. Record route, control, rendered
+ text and its source before correcting any additional occurrence. Scan public
+ HTML text/attributes, JSON and decoded JS literals; preserve legitimate
+ multilingual text and punctuation.
+2. **Correct the maintained inputs with focused failing tests first.** Replace
+ known damaged strings with their intended punctuation. Use HTML entities in
+ markup, JS Unicode escapes such as `\u00b7` in text strings, or ordinary ASCII
+ `...` for loading copy. Entities must not be assigned literally to
+ `textContent`. Repair Bridge metadata through an explicit, reviewed conversion
+ of the identified legacy input. Assert unchanged numeric/terrain contracts.
+ Correct the unrelated test path names separately; record any historical prose
+ correction without changing its recorded results.
+3. **Add prevention at the relevant boundaries.** Use fatal UTF-8 validation for
+ textual scene inputs and public build output. Add a shared detector for known
+ corruption sequences, tested against the current examples, nested damage,
+ escaped JS literals, HTML entities and valid accented/multilingual strings.
+ Apply it to maintained public UI strings and compiled output, then to rendered
+ control states. A blanket non-ASCII ban or generic runtime text replacement is
+ inappropriate. Explicit negative fixtures and quoted historical examples
+ require narrow exclusions. Wire the checks into scene/site CI and the full
+ production build, which includes sealed scene packs absent from reduced CI.
+4. **Fix preview coverage.** Add a Troy homepage card using both existing posters,
+ the common ScenePoster component, a pack link and a scene link. Prefer a
+ readable two-column desktop arrangement for the four scene cards; update image
+ sizes for the actual grid. For Foundry, lead with a campus image and mix building
+ modules with tools/transport in the featured samples. Reuse existing pinned
+ `s1-head-w`/`s2-hall-w` and related posters where their composition works.
+ Existing campus captures show the architecture, but some individual posters
+ are roof-dominated: choose a lower, tighter real scene capture if needed to make
+ building height and facades clear. Show proposed images before final selection.
+ Use readable captions, accurate alt text and existing responsive/lazy-loading
+ conventions. Keep all inventory models and download options available.
+5. **Rebuild and publish corrected derivatives.** Create fresh immutable Troy
+ and Bridge release IDs, update their seals/pins/catalog references and rebuild
+ the site. Retain release 06 and g9-code5 as historical artifacts. Verify that
+ GLBs, pose banks, terrain payloads and unrelated source identities are unchanged.
+ Preserve the two byte-sealed archer source files and their scoped Git attributes.
+ Text/image changes do not justify rebaking character animation or redesigning
+ the rendering pipeline.
+6. **Review and verify the release.** Have an independent reviewer check detector
+ false positives, sealed input preservation, actual displayed strings, image
+ coverage and stale-cache behavior. Run affected tests, required scene/site
+ checks and the full production build. Publish after the fixes are qualified,
+ verify deployed commit/manifest and new immutable paths, then repeat the actual
+ loading/control flows and image checks on HTTPS. Test desktop and narrow/mobile
+ layouts. No new performance claim is needed for a text-only correction; if a
+ discovered fix changes runtime behavior, qualify that change separately.
+
+## Acceptance
+
+- Every exercised loading, progress, control, secondary-panel and error label is
+ readable on all maintained scenes and asset previews.
+- Strict decoding finds no invalid UTF-8 in the current public textual inputs;
+ decoded copy checks find no unaccounted corruption sequences.
+- The homepage visibly includes both Troy compositions and working pack/scene
+ links. Foundry's pack listing and introduction visibly include architecture,
+ with buildings readable at thumbnail sizes.
+- Existing runtime/editable downloads, asset/animation/terrain identities,
+ lifecycle behavior and normal international text remain correct.
+- Exact deployed identity, immutable resource versions and real HTTPS flows are
+ verified; previous releases and unrelated local work remain preserved.
+
+## Evidence and current limits
+
+Ignored local evidence is under `site/.localdata/encoding-audit-20261005/`:
+`report.json` (source/HTTPS audit), `artifacts-report.json` (decoded compiled
+strings and invalid bytes), plus the audit scripts. The production artifact
+manifest SHA-256 is `767fd55b364e46398c46eb612e40140be4de1034b7cf0fd2bb0990cb8d6ccc80`.
+Bridge metadata's HTTPS bytes match its recorded SHA-256
+`73000e5b01ab86a6a7cd2133f94dbb08e840fd9219c053bb63edbba5fe57bf12`.
+
+The implementation and interactive site-wide acceptance above remain to be done.
+This record is a plan, not a claim that the defects have already been fixed.
+
+## Implementation record
+
+The implementation and candidate validation are recorded in
+[the site text and preview release review](../reviews/2026-10-05-site-text-and-preview-release.md).
+That later record supersedes the pending implementation status above; the
+findings here remain the original analysis of release 06 and Bridge code5.
diff --git a/docs/reviews/2026-09-22-opencode-main-campaign.md b/docs/reviews/2026-09-22-opencode-main-campaign.md
index f731a7ff..d658f2f1 100644
--- a/docs/reviews/2026-09-22-opencode-main-campaign.md
+++ b/docs/reviews/2026-09-22-opencode-main-campaign.md
@@ -63,8 +63,8 @@ as the footprint. The seating span changes from 22.932 to 28.655 m, approximatel
All saved manifest hashes and sizes match files. Saved GLBs, sources and previews
match the corresponding CLI exports. The three revisions form one immutable chain:
-`r_1e5ad3a8f83f4608ba4ab999c465c0b4` →
-`r_395cbca9ba894dfba3a0f4ffb2a73958` →
+`r_1e5ad3a8f83f4608ba4ab999c465c0b4` →
+`r_395cbca9ba894dfba3a0f4ffb2a73958` →
`r_a2928f16a361493e86ec421eeb512aff`, under asset
`a_36a8507dbf4044c6abbd7060df1eb177`.
All six successful anchored edit calls independently reconstruct the exact stored
@@ -154,8 +154,8 @@ No model process from this trial remains active.
All source/GLB exports match their recorded hashes and saved revision bytes. Every
saved manifest file hash/size verifies. The revision chain under
`a_9afcb207e7574dd580ead6ce3278a6f8` is
-`r_b9d240ee916e4a8c9597ce6e7001c05c` →
-`r_2892bc6abcf14f08a87d0d3f088127ed` →
+`r_b9d240ee916e4a8c9597ce6e7001c05c` →
+`r_2892bc6abcf14f08a87d0d3f088127ed` →
`r_00511ac2e7cc42f79e74505d98a7cebb`.
Every exported PNG was read by the model, with matching attachment bytes. Saved
previews and exported PNGs differ: the former use the default sheet, while the
@@ -460,9 +460,9 @@ read. All source/GLB bytes match saved immutable revisions and manifest hashes.
| Copper insert swap | `p_ab28f74078f9` | 4,840 / 53 | Eight copper components replace 28 steel plate/ridge meshes. All 45 retained meshes keep geometry and world transforms; paint and texture bytes remain. Grooves are geometric channels. Flat plates stay 70 mm apart, but screws leave 68 mm usable separation. |
Asset `a_47c3a3b976ce46d4bf753b066cb9649d`; lineage:
-`r_1343a75251a84171a3da0f5a8cb82819` → `r_f160360f7878460cb142586395aab056`
-→ `r_c02ee31fda2d4d46861630edf56039fc`.
-Bounds are 0.292 × 0.152 × 0.192 m initially, then 0.322 × 0.152 × 0.192 m.
+`r_1343a75251a84171a3da0f5a8cb82819` → `r_f160360f7878460cb142586395aab056`
+→ `r_c02ee31fda2d4d46861630edf56039fc`.
+Bounds are 0.292 × 0.152 × 0.192 m initially, then 0.322 × 0.152 × 0.192 m.
Grouping and local edit behavior succeed. The recipe itself was not retrieved, and
the brief explicitly requested roots, so this run does not isolate the effect of
@@ -562,8 +562,8 @@ hashes match. Runtime stayed at `sha256:e74ee5812a5fd5532011ab9c0bc9c2575af321e1
| Cantilever fork | `p_b7cf308b8ee1` | 12,668 / 120 | Dedicated local `Joint_FrontFork` under steering contains five components on the +Z side. Two new and five removed meshes, three changed retained fork components; the other 115 meshes preserve geometry and world transforms. Both clips and materials remain identical. |
Asset `a_f203184c04ac427eb4da17be5118c10c`; lineage:
-`r_1473cfff296c485487cc312385359db9` → `r_200f98dd65e94c11a55e40ef9ff78f4d`
-→ `r_04dbffc0fd3142678c430548cc5464c6`.
+`r_1473cfff296c485487cc312385359db9` → `r_200f98dd65e94c11a55e40ef9ff78f4d`
+→ `r_04dbffc0fd3142678c430548cc5464c6`.
The front-view steering sheets show the fork/wheel/handlebars moving together while
the rear assembly stays fixed. The final -Z hub face is open. This is useful local
replacement evidence, not proof of mechanical strength or continuous clearances.
@@ -622,7 +622,7 @@ R04 remains open. Raw `THREE.DataTexture` construction is rejected by generated-
policy; it must not be taught as an available route. The existing approved
`kiln.texture.leaf-mask-albedo.v1` works with `loadApprovedTexture` and
`foliageMaterial`: actual CPU CLI export contains MASK, doubleSided and embedded
-alpha. It is a 4×4 placeholder, not production foliage. External
+alpha. It is a 4×4 placeholder, not production foliage. External
`cutout-approved-recipe-probe-review.json` preserves the result; GPU, destination
and optional executable recipe publication remain to do. No scored source or
approved resource bytes were altered for this investigation.
@@ -639,7 +639,7 @@ wheel centers, 0.84 m rear track and both clips remain unchanged.
Repair source `p_db37b5bbc024`, GLB `5622715c00cd465bd1604d94a941a1d4ec6006de15d3ea3cefa3d68aa9e4c47d`;
child `r_29d718006acf4273939726486dbf6c0b` of `r_04dbffc0fd3142678c430548cc5464c6`
in the existing trike asset. Manifest/source/GLB identity and PNG reads match.
-The independent 81-phase sampler now measures 0.857–2.195 mm wheel clearance.
+The independent 81-phase sampler now measures 0.857–2.195 mm wheel clearance.
Sampled penetration is corrected, but exact Y=0 rolling contact is not established.
The source comment claiming at least 1.5 mm at every phase is wrong; the final
model report acknowledges approximately 0.86 mm minimum. The scored baseline and
@@ -653,7 +653,7 @@ sweep perimeter/path UVs through a reflected bend. Two helper examples now actua
bind alpha and invoke foliageMaterial instead of showing an untextured baseline.
Skills point to optional recipes without selecting an asset category.
-The foliage resource is explicitly a 4×4 placeholder. GPU review shows a crude
+The foliage resource is explicitly a 4×4 placeholder. GPU review shows a crude
masked card, not production-quality foliage. Its GLB contains MASK cutoff 0.5,
doubleSided and alpha values 0/96/180/255. The striped sweep visibly follows both
bends, but its planar cap UVs need separate end-grain treatment. Recipes distinguish
@@ -707,8 +707,8 @@ itself stays 4.8 m. Intentional submerged geometry does not acquire a ground rul
Saved source/GLB hashes, manifest sizes, exported PNG reads and parent lineage all
verify. Asset `a_f68d3902665a4a59aff380bd139f822b` has revisions
-`r_0c9e941e70484aecbcb20ae865ba4a62` → `r_dfb205b118a84983942dea7c4e29760b`
-→ `r_d94499193c9c40b7b4ce593381bbc177`. Final GLB:
+`r_0c9e941e70484aecbcb20ae865ba4a62` → `r_dfb205b118a84983942dea7c4e29760b`
+→ `r_d94499193c9c40b7b4ce593381bbc177`. Final GLB:
`e8b36c73103e8d8a0888c25ecf296d92e8d95e315337bf410a4dc6b331c10dbb`.
Maintainer reviewed all final source revisions and GPU sheets. Original assets
remain unchanged. Evidence: `evidence-main-07-river-skiff-mcp/`, including independent
@@ -793,12 +793,12 @@ other fans, and leaves ten alpha cards. Its longer leaves extend the footprint t
0.946257 by 0.958431 m. All materials/textures remain identical across revisions.
The three-leaf replacement has geometric silhouettes; alpha cards remain elsewhere.
Asset `a_39222feda8584e5faa3a1af10ec71d8c` has revisions
-`r_a682002d216c49f2b958c6d8ea51cf22` → `r_49978fca95014a0ab3b2138fc2968ac4`
-→ `r_45dda45f92194d2086db0d7b9ca52e76`. Final GLB:
+`r_a682002d216c49f2b958c6d8ea51cf22` → `r_49978fca95014a0ab3b2138fc2968ac4`
+→ `r_45dda45f92194d2086db0d7b9ca52e76`. Final GLB:
`1f4efdd4a55a83ae490ac9bd87a567bab67c6e0bb6c1060dbe1f10749d0bdf31`.
F202 now has fresh-model evidence: the author reads and accurately discloses the
-4×4 teaching texture limitation. Pale cutouts remain visibly jagged. The model's
+4×4 teaching texture limitation. Pale cutouts remain visibly jagged. The model's
claim that every leaf base sits on its stem is stronger than the evidence: exported
cutout origins are up to 71.087 mm from their own stem/tip surface after widening.
This point-distance check alone does not establish disconnected leaf surfaces;
diff --git a/docs/reviews/2026-10-05-site-text-and-preview-release.md b/docs/reviews/2026-10-05-site-text-and-preview-release.md
new file mode 100644
index 00000000..3d940cc1
--- /dev/null
+++ b/docs/reviews/2026-10-05-site-text-and-preview-release.md
@@ -0,0 +1,73 @@
+# Site text and preview release
+
+The [cleanup plan](../plans/2026-10-05-site-text-and-preview-cleanup.md) is implemented
+with new immutable inputs: Troy `troy-20261005-07`, Bridge `g9-code6`, and Foundry
+campus media `preview-20261005-01`. Existing downloads and retained asset revisions
+remain available. This site change does not publish a new engine package.
+
+## Changes
+
+- Troy's initial loading message, progress fallback and eight status separators
+ display their intended text. Bridge's terrain metadata is valid UTF-8.
+- Maintained source and final production output are checked with fatal UTF-8
+ decoding and known mojibake detection. JavaScript/TypeScript cooked literals,
+ templates, Astro expressions, JSON values and HTML entities are inspected.
+ Normal accented, multilingual and mathematical text remains supported.
+- Hash-pinned textual scene archive members are decoded strictly before
+ extraction. Bridge's authoring readers also fail on malformed UTF-8. Website
+ CI now runs on scene changes, and production builds check their full output.
+- Maintained browser verifiers check DOM-readable copy and CSS-visible labels,
+ retaining offending text in failure evidence. Hidden labels are excluded until
+ revealed. This check does not claim pixel visibility or performance acceptance.
+- The homepage includes both Troy coast and battle pictures and its scene/pack
+ links. Four scene cards use a two-column desktop grid.
+- Foundry's listing leads with a lower real campus capture and includes building,
+ process and transport samples. Its pack introduction shows that campus too.
+ The previous aerial capture remains recorded; all inventory/downloads remain.
+- Historical review punctuation and two intended accented test paths were
+ corrected without changing the review's results or retained asset sources.
+
+## Preservation
+
+The Bridge archive differs in three members: terrain metadata, `pack.json` and
+`SHA256SUMS`. Its other 108 archive members are identical. Six plus/minus signs
+and one squared sign add seven bytes when encoded correctly; all parsed JSON
+values, numbers and terrain contracts retain their intended meaning. Runtime
+SHA-256 remains `1a01a81a912157936f05a2060f1df377c418607a83567753e4db2b0257bdb556`.
+
+Independent verification compared 543 protected Troy model, bank, runtime-data
+and image files against release 06; every byte matches. Only loading/status
+copy, source/pack seals and generated bundles change. Four retained UI helpers
+normalize CRLF to LF during regeneration; their normalized source is identical.
+The two byte-sealed archer modules keep their exact original hashes.
+
+The new 1440 by 925 Foundry capture is an unretouched canvas image of the staged
+Arrival view, with controls hidden. Its pinned PNG is 106,931 bytes, SHA-256
+`b10146e32cb3f58ead9c977169f9e0059d994fb03fb40c838bcb4c04ff38181b`.
+Responsive WebP/AVIF derivatives use the existing media pipeline.
+
+## Validation and independent review
+
+Focused regressions were observed failing before the fixes. Source validation
+checks 729 maintained files with zero errors. Full production validation checks
+2,445 textual files with zero errors. Static validation passes 223 routes; the
+browser visits all 223 with zero script, console, navigation or HTTP errors.
+Typechecks, lint and Astro diagnostics pass. Scene tests pass 716 portable
+contracts plus 53 Troy tests; the corrected workspace fixture passes 15 tests.
+
+Local site tests pass 620, with two existing skips and two Windows file-symlink
+permission failures. Those symlink assertions remain intact and passed Linux CI.
+
+Independent review found and closed three prevention gaps: escaped Astro
+expression literals, scene-only CI triggers, and malformed UTF-8 archive members
+accepted before staging. It also checked multilingual false positives, invalid
+syntax, actual loading/control/error states, cold/cached entry, renderer fallback,
+image decoding, links, desktop/narrow layouts and immutable payload identities.
+The final browser-verifier follow-up also passed independent Chrome checks for
+hidden/revealed labels, legitimate accented text and retained failure evidence.
+
+Ignored evidence is retained under `site/.localdata/`: `text-*` build/test/static
+and route reports, `site-text-review/`, `preview-coverage/`, and the Troy/Bridge
+preservation receipts. Release closeout must verify the clean deployed commit
+and artifact manifest against the reviewed production output. No new hardware
+performance claim is made for these text/image changes.
diff --git a/packs/troy/inventory.json b/packs/troy/inventory.json
index 63ecc6f7..860fd6c4 100644
--- a/packs/troy/inventory.json
+++ b/packs/troy/inventory.json
@@ -19,7 +19,7 @@
"category": "Buildings",
"glbSha256": "d2e5c1a6885f509caeb9428980d74b2760bae735af81549ae08fdd825fadffa8",
"glbBytes": 302776,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/wall-section.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/wall-section.webp",
"metrics": {
"triangles": 168,
"meshes": 14,
@@ -90,7 +90,7 @@
"category": "Buildings",
"glbSha256": "19322963f4704e5a9e4b31e242d7d1991126e0ffde750d57152a622089ac4f91",
"glbBytes": 391512,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/city-gate.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/city-gate.webp",
"metrics": {
"triangles": 516,
"meshes": 7,
@@ -157,7 +157,7 @@
"category": "Buildings",
"glbSha256": "d69aaca4db3b1963a28ea62fd5a54c9a2dbe277a083086f3c31e3270fd300b5b",
"glbBytes": 330524,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/house.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/house.webp",
"metrics": {
"triangles": 876,
"meshes": 8,
@@ -222,7 +222,7 @@
"category": "Buildings",
"glbSha256": "6609d8e4f5be92b88f5a14facad3cb9cb39f43d257bc2bcec51adeaca66f41ee",
"glbBytes": 492876,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/temple-hall.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/temple-hall.webp",
"metrics": {
"triangles": 2024,
"meshes": 12,
@@ -293,7 +293,7 @@
"category": "Vehicles",
"glbSha256": "c438f0275186e34ad724dade9f22426a4ad4dab412a17ea7b1d62d468c151f4f",
"glbBytes": 396772,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/war-galley.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/war-galley.webp",
"metrics": {
"triangles": 6480,
"meshes": 4,
@@ -362,7 +362,7 @@
"category": "Characters",
"glbSha256": "55361985e3353e4a87944f61c1007eb725732a128bf7a33d3a989f3b26f34af3",
"glbBytes": 373008,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/greek-soldier.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/greek-soldier.webp",
"metrics": {
"triangles": 2140,
"meshes": 27,
@@ -464,7 +464,7 @@
"category": "Characters",
"glbSha256": "97f6fe97902df9af9037518dc28699524c843f0b94136ec3f9c9850d2b57df6f",
"glbBytes": 352016,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/trojan-soldier.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/trojan-soldier.webp",
"metrics": {
"triangles": 2000,
"meshes": 27,
@@ -559,7 +559,7 @@
"category": "Characters",
"glbSha256": "1bb8b9b44044365a172eb5015c12b8493b6c47e3087178a7fa89b18e768e645f",
"glbBytes": 547628,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/achilles.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/achilles.webp",
"metrics": {
"triangles": 3468,
"meshes": 31,
@@ -659,7 +659,7 @@
"category": "Characters",
"glbSha256": "70b6e63f742413ef4d3348071b8f917507d521e9e80739fcf30aaff5de5e054a",
"glbBytes": 428112,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/hector.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/hector.webp",
"metrics": {
"triangles": 2516,
"meshes": 30,
@@ -748,7 +748,7 @@
"glb": "https://assets.kilnstudio.tools/packs/troy/delivery-20261005-01/models/olive.glb",
"glbSha256": "5ca97cea350d7eb751bcfb214a89e0b83cc3e7bf3c317663ae4d5d51d6e32cd9",
"glbBytes": 171340,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/olive.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/olive.webp",
"metrics": {
"triangles": 4634,
"meshes": 4,
@@ -812,7 +812,7 @@
"glb": "https://assets.kilnstudio.tools/packs/troy/delivery-20261005-01/models/cypress.glb",
"glbSha256": "0fbabf224cb33e55f3cc6480bfad8fd40175a15c0fa00f9072faa11e40e1ac89",
"glbBytes": 82436,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/cypress.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/cypress.webp",
"metrics": {
"triangles": 2712,
"meshes": 2,
@@ -874,7 +874,7 @@
"glb": "https://assets.kilnstudio.tools/packs/troy/delivery-20261005-01/models/fig.glb",
"glbSha256": "1769ec4b6d44f208af272b50056d4e01ceb7bf5a8605cbff49019595aef34fa3",
"glbBytes": 147416,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/fig.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/fig.webp",
"metrics": {
"triangles": 4676,
"meshes": 4,
@@ -938,7 +938,7 @@
"glb": "https://assets.kilnstudio.tools/packs/troy/delivery-20261005-01/models/shrub.glb",
"glbSha256": "4b2ad9c25c2035b02ebb72cc0336842c6c5a6441aada21cfe137d8749b3de51f",
"glbBytes": 47456,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/shrub.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/shrub.webp",
"metrics": {
"triangles": 1252,
"meshes": 3,
@@ -1010,7 +1010,7 @@
"category": "Animals",
"glbSha256": "03e257c29b54ad05f5f37381474fe6eba995f22d72fefba9e90e5d46bbe84b5c",
"glbBytes": 248068,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/horse.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/horse.webp",
"metrics": {
"triangles": 4804,
"meshes": 54,
@@ -1128,7 +1128,7 @@
"category": "Buildings",
"glbSha256": "77c48aa6dbff40b212c5eacc4f340838358f71ee52ccc99966cd2bdc7f9b37e7",
"glbBytes": 333340,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/wall-breached.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/wall-breached.webp",
"metrics": {
"triangles": 528,
"meshes": 44,
@@ -1231,7 +1231,7 @@
"category": "Vehicles",
"glbSha256": "6b06d838c3f8016e5ca1f94abd6da317fc0825f83b3f12f932ae5968b5b60c29",
"glbBytes": 614312,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/war-chariot.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/war-chariot.webp",
"metrics": {
"triangles": 4156,
"meshes": 16,
@@ -1306,7 +1306,7 @@
"category": "Equipment",
"glbSha256": "b15e157bf0e01fab0c421e232c08ab2572a7c42738d4454f994dfa275e99b4d9",
"glbBytes": 137688,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/sword.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/sword.webp",
"metrics": {
"triangles": 208,
"meshes": 4,
@@ -1361,7 +1361,7 @@
"category": "Equipment",
"glbSha256": "90a164bf7cbc9c98f7877bce029ed1ab016ab8043086f724ce70b92a0feff72a",
"glbBytes": 182764,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/shield.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/shield.webp",
"metrics": {
"triangles": 1272,
"meshes": 10,
@@ -1422,7 +1422,7 @@
"category": "Equipment",
"glbSha256": "861da8a5dad6265aa823c4b86f73142da14accfa48f486372241fba3e51ac366",
"glbBytes": 137780,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/bow-set.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/bow-set.webp",
"metrics": {
"triangles": 1404,
"meshes": 34,
@@ -1513,7 +1513,7 @@
"category": "Buildings",
"glbSha256": "aeb622fb0a37233a707030a81a3e9b991fff0b2ed17924956bd6ab61c53d9770",
"glbBytes": 279516,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/wooden-horse.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/wooden-horse.webp",
"metrics": {
"triangles": 2060,
"meshes": 14,
@@ -1587,7 +1587,7 @@
"category": "Compositions",
"glbSha256": "d2ba5e05718c7889134d51bb89680a7dc05b5b24100c4f3e9d89b18034991dfb",
"glbBytes": 14464712,
- "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-06/media/battle-scene-reference.webp",
+ "poster": "https://kilnstudio.tools/scene-packs/troy/troy-20261005-07/media/battle-scene-reference.webp",
"metrics": {
"triangles": 208178,
"meshes": 130,
@@ -1762,5 +1762,5 @@
"license": "CC0-1.0",
"release": "troy-20261005-02",
"sourceRoot": "sources",
- "sceneRelease": "troy-20261005-06"
+ "sceneRelease": "troy-20261005-07"
}
diff --git a/scenes/packages/golden-gate/scripts/stage.ts b/scenes/packages/golden-gate/scripts/stage.ts
index 56433c15..78452db9 100644
--- a/scenes/packages/golden-gate/scripts/stage.ts
+++ b/scenes/packages/golden-gate/scripts/stage.ts
@@ -18,6 +18,7 @@ const BEHAVIOUR_FILE = 'data/BEHAVIOUR.md';
import { laneDrift, roadGridFromBridge } from './layout';
import { deckEnds } from './approaches';
import { verifyCanonical } from './terrain-canonical';
+import { decodeUtf8, readUtf8 } from './utf8';
import { BRIDGE_ASSET, BRIDGE_FULL, BRIDGE_LIBRARY, BRIDGE_LICENCE, BRIDGE_PINS, BRIDGE_SOURCE, STAGED_RELEASE, type BridgePin } from './release';
export const TRADEMARK_NOTE = 'The Golden Gate Bridge name and likeness are trademarks of the Golden Gate Bridge, Highway and Transportation District. The CC0 dedication covers copyright in this model only and grants no trademark rights.';
@@ -100,7 +101,7 @@ export function checkVehicleLicence(type: VehicleType, text: string): void {
/** Checks the MSFT_lod convention: LOD0 references LOD1 and LOD2, four named wheels at the root. */
export function checkVehicleGlb(type: VehicleType, bytes: Uint8Array): void {
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength), length = view.getUint32(12, true);
- const json = JSON.parse(new TextDecoder().decode(bytes.subarray(20, 20 + length))) as { nodes: { name?: string; children?: number[]; extensions?: { MSFT_lod?: { ids: number[] } } }[]; scenes: { nodes: number[] }[]; extensionsRequired?: string[] };
+ const json = JSON.parse(decodeUtf8(bytes.subarray(20, 20 + length), `Vehicle ${type} GLB JSON`)) as { nodes: { name?: string; children?: number[]; extensions?: { MSFT_lod?: { ids: number[] } } }[]; scenes: { nodes: number[] }[]; extensionsRequired?: string[] };
const root = json.nodes[json.scenes[0]!.nodes[0]!]!, children = (root.children ?? []).map(i => json.nodes[i]!);
const lod0 = children.find(n => n.name === 'LOD0'), ids = lod0?.extensions?.MSFT_lod?.ids ?? [];
if (!lod0 || ids.length !== 2 || json.nodes[ids[0]!]?.name !== 'LOD1' || json.nodes[ids[1]!]?.name !== 'LOD2') throw new Error(`Vehicle ${type}: LOD0 does not reference LOD1 and LOD2 through MSFT_lod`);
@@ -109,7 +110,7 @@ export function checkVehicleGlb(type: VehicleType, bytes: Uint8Array): void {
}
const sha256 = (bytes: Uint8Array) => createHash('sha256').update(bytes).digest('hex');
-const json = <T>(path: string): T => JSON.parse(readFileSync(path, 'utf8')) as T;
+const json = <T>(path: string): T => JSON.parse(readUtf8(path)) as T;
interface TerrainFile { file: string; bytes: number; sha256: string; kind: string; tile_key: string | null; level: string; scene_bounds_xz_m: [number, number, number, number] | null; triangle_count: number; texture_size?: [number, number] | null; resolution?: [number, number]; metres_per_unit?: number; offset_m?: number }
interface TerrainManifest {
@@ -182,7 +183,7 @@ export async function stageGoldenGate(args: readonly string[] = process.argv.sli
// as in g1; the full tier is verified and recorded in the staging evidence only.
const licencePath = resolve(options.bridge, BRIDGE_LICENCE.file), licenceBytes = readFileSync(licencePath);
if (licenceBytes.length !== BRIDGE_LICENCE.bytes || sha256(licenceBytes) !== BRIDGE_LICENCE.sha256) throw new Error(`Bridge licence ${licencePath}: ${licenceBytes.length} B, SHA-256 ${sha256(licenceBytes).slice(0, 16)}; pinned ${BRIDGE_LICENCE.bytes} B, ${BRIDGE_LICENCE.sha256.slice(0, 16)}`);
- const licence = new TextDecoder().decode(licenceBytes), fixup = licence.indexOf(BRIDGE_LICENCE.section);
+ const licence = decodeUtf8(licenceBytes, `Bridge licence ${BRIDGE_LICENCE.file}`), fixup = licence.indexOf(BRIDGE_LICENCE.section);
if (!licence.includes('CC0-1.0') || !licence.includes(TRADEMARK_NOTE) || fixup < 0) throw new Error('Bridge licence lacks CC0, the trademark note or its fix-up section');
const bridgeInputs: Record<string, unknown>[] = [{ file: relative(COMMONS, licencePath).split('\\').join('/'), bytes: licenceBytes.length, sha256: sha256(licenceBytes), section: BRIDGE_LICENCE.section }];
const checkBridge = (id: string, spec: BridgePin) => {
@@ -280,7 +281,7 @@ export async function stageGoldenGate(args: readonly string[] = process.argv.sli
add(glbPath, `vehicles/${type}.glb`, undefined, { licence: 'CC0-1.0', revision: provenance.revision, asset: provenance.asset, lod: 'MSFT_lod', ...(provenance.parentRevision ? { parentRevision: provenance.parentRevision, author: provenance.author, refinedBy: provenance.refinedBy } : {}) });
const licence = [resolve(REVIEW2_VEHICLES, 'licenses', `${type}.ASSET-LICENSE.txt`), ...[`${type}.ASSET-LICENSE.txt`, 'ASSET-LICENSE.txt', `${type}-runtime.ASSET-LICENSE.txt`].map(n => resolve(dir, n))].find(p => existsSync(p));
if (licence) {
- checkVehicleLicence(type, readFileSync(licence, 'utf8'));
+ checkVehicleLicence(type, readUtf8(licence));
add(licence, `licenses/vehicles/${type}.ASSET-LICENSE.txt`);
} else write(`licenses/vehicles/${type}.ASSET-LICENSE.txt`, vehicleLicenceText(type, sha256(glbBytes)), `licenses/vehicles/${type}.ASSET-LICENSE.txt`, { note: 'generated: the author folder ships no licence file' });
models.push({ id: `vehicle-${type}`, to: `vehicles/${type}.glb` });
diff --git a/scenes/packages/golden-gate/scripts/terrain-canonical.ts b/scenes/packages/golden-gate/scripts/terrain-canonical.ts
index 518502d2..2b4f26bf 100644
--- a/scenes/packages/golden-gate/scripts/terrain-canonical.ts
+++ b/scenes/packages/golden-gate/scripts/terrain-canonical.ts
@@ -17,6 +17,7 @@ import { Matrix4, Quaternion, Vector3 } from 'three/webgpu';
import type { BufferAttribute, Mesh, Object3D } from 'three/webgpu';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
+import { decodeUtf8, readUtf8 } from './utf8';
const PACKAGE_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..');
const COMMONS = resolve(PACKAGE_ROOT, '../../..');
@@ -117,7 +118,7 @@ export function assertEquivalent(c: TileComparison): void {
/** Copies the pipeline's pre-compression tiles into source-data/terrain and indexes them. */
export function copyCanonical(): CanonicalIndex {
mkdirSync(CANONICAL_DIR, { recursive: true });
- const manifest = JSON.parse(readFileSync(resolve(PIPELINE_OUT, 'manifest.json'), 'utf8')) as { files: { file: string; bytes: number; sha256: string }[] };
+ const manifest = JSON.parse(readUtf8(resolve(PIPELINE_OUT, 'manifest.json'))) as { files: { file: string; bytes: number; sha256: string }[] };
const tiles = TILE_KEYS.map(key => {
const from = resolve(PIPELINE_RAW, `${key}_raw.glb`), to = resolve(CANONICAL_DIR, `${key}.glb`);
copyFileSync(from, to);
@@ -141,12 +142,12 @@ export function copyCanonical(): CanonicalIndex {
interface GlbJson { extensionsUsed?: string[]; extensionsRequired?: string[]; meshes: { primitives: { attributes: Record<string, number>; indices?: number }[] }[]; accessors: { count: number }[] }
function glbJson(bytes: Uint8Array): GlbJson {
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength), length = view.getUint32(12, true);
- return JSON.parse(new TextDecoder().decode(bytes.subarray(20, 20 + length))) as GlbJson;
+ return JSON.parse(decodeUtf8(bytes.subarray(20, 20 + length), 'Terrain GLB JSON')) as GlbJson;
}
/** Checks the canonical files against their index, then each derivative (by path) against its canonical tile. */
export async function verifyCanonical(derivativePath: (key: string) => string): Promise<TileComparison[]> {
- const index = JSON.parse(readFileSync(CANONICAL_INDEX, 'utf8')) as CanonicalIndex, out: TileComparison[] = [];
+ const index = JSON.parse(readUtf8(CANONICAL_INDEX)) as CanonicalIndex, out: TileComparison[] = [];
for (const tile of index.tiles) {
const canonical = readFileSync(resolve(CANONICAL_DIR, tile.file)), derivative = readFileSync(derivativePath(tile.key));
if (canonical.length !== tile.bytes || sha256(canonical) !== tile.sha256) throw new Error(`Canonical terrain ${tile.file} differs from source-data/terrain/canonical.json`);
diff --git a/scenes/packages/golden-gate/scripts/utf8.ts b/scenes/packages/golden-gate/scripts/utf8.ts
new file mode 100644
index 00000000..03453970
--- /dev/null
+++ b/scenes/packages/golden-gate/scripts/utf8.ts
@@ -0,0 +1,6 @@
+import {readFileSync} from 'node:fs';
+export function decodeUtf8(bytes:Uint8Array,context:string):string{
+ try{return new TextDecoder('utf-8',{fatal:true}).decode(bytes);}
+ catch(error){throw new Error(`${context}: invalid UTF-8`,{cause:error});}
+}
+export function readUtf8(path:string):string{return decodeUtf8(readFileSync(path),path);}
diff --git a/scenes/packages/golden-gate/tests/unit/utf8-input.test.ts b/scenes/packages/golden-gate/tests/unit/utf8-input.test.ts
new file mode 100644
index 00000000..f04567dc
--- /dev/null
+++ b/scenes/packages/golden-gate/tests/unit/utf8-input.test.ts
@@ -0,0 +1,15 @@
+import {expect,test} from 'bun:test';
+import {mkdtempSync,writeFileSync,rmSync} from 'node:fs';import {tmpdir} from 'node:os';import {join} from 'node:path';
+import {decodeUtf8,readUtf8} from '../../scripts/utf8';
+import {checkVehicleGlb} from '../../scripts/stage';
+
+test('Bridge textual readers reject legacy bytes with input identity rather than inserting replacement text',()=>{
+ expect(()=>decodeUtf8(Uint8Array.of(0xb1),'terrain/manifest.json')).toThrow(/terrain\/manifest.json.*UTF-8/);
+ const dir=mkdtempSync(join(tmpdir(),'bridge-utf8-'));try{const file=join(dir,'manifest.json');writeFileSync(file,Buffer.from([0x7b,0x22,0x78,0x22,0x3a,0x22,0xb1,0x22,0x7d]));expect(()=>readUtf8(file)).toThrow(/manifest\.json.*UTF-8/);}finally{rmSync(dir,{recursive:true,force:true});}
+ const text='{"notes":"± m² café 日本語","height":1.25}';expect(JSON.parse(decodeUtf8(new TextEncoder().encode(text),'valid.json'))).toEqual({notes:'± m² café 日本語',height:1.25});
+});
+test('actual staged vehicle JSON chunk refuses invalid UTF-8 even with structurally valid LOD data',()=>{
+ const json=JSON.stringify({nodes:[{children:[1,4,5,6,7]},{name:'LOD0',extensions:{MSFT_lod:{ids:[2,3]}}},{name:'LOD1'},{name:'LOD2'},...['Wheel_FL','Wheel_FR','Wheel_RL','Wheel_RR'].map(name=>({name}))],scenes:[{nodes:[0]}],note:'X'});
+ const body=Buffer.from(json),offset=body.indexOf('X');body[offset]=0xb1;const bytes=Buffer.alloc(20+body.length);bytes.writeUInt32LE(body.length,12);body.copy(bytes,20);
+ expect(()=>checkVehicleGlb('sedan',bytes)).toThrow(/Vehicle sedan GLB JSON.*UTF-8/);
+});
diff --git a/scenes/packages/troy/README.md b/scenes/packages/troy/README.md
index aa5942dd..7164408a 100644
--- a/scenes/packages/troy/README.md
+++ b/scenes/packages/troy/README.md
@@ -42,7 +42,8 @@ To use an already downloaded archive, run `node scripts/hydrate-runtime.mjs PATH
Hydration is an explicit download of approximately 51.6 MB for the initial pin;
the normal repository clone contains source, not these generated payloads.
-The initial runtime pin is `troy-20261005-06`. Update it to the newly sealed and
+The current runtime pin is `troy-20261005-07`, a text correction of release 06
+with identical model and bank payloads. Update it to the newly sealed and
verified release when adopting changed model/bank inputs. A pin change requires
rehydration; the preview refuses a cache selected for another release.
diff --git a/scenes/packages/troy/runtime-pin.json b/scenes/packages/troy/runtime-pin.json
index 72afebf8..7709b7fc 100644
--- a/scenes/packages/troy/runtime-pin.json
+++ b/scenes/packages/troy/runtime-pin.json
@@ -1,9 +1,9 @@
{
"schema": "kiln.troy-runtime-pin/1",
"base": "https://assets.kilnstudio.tools/",
- "release": "troy-20261005-06",
- "path": "packs/troy/troy-20261005-06/troy-scene.zip",
- "bytes": 51588957,
- "sha256": "65e278f9451c6eadceac23f10336dfc607088515b4fa8064848834703e5e6b50",
- "sourceManifestSha256": "ec4e68d1bf03934a73d85c7617bda990dbe16c3600c0251eab3d817c3555827e"
+ "release": "troy-20261005-07",
+ "path": "packs/troy/troy-20261005-07/troy-scene.zip",
+ "bytes": 51588709,
+ "sha256": "ae37a3114e4bfbff5f0650267e828c3c4068a2df9bc10a825058851cda543482",
+ "sourceManifestSha256": "d3f153c4e3da8e3a2fee8db585ce7e7959bb6a7651db60f0c798e915e1fa21e4"
}
diff --git a/scenes/packages/troy/web/index.html b/scenes/packages/troy/web/index.html
index c95a9a87..d8af0f5e 100644
--- a/scenes/packages/troy/web/index.html
+++ b/scenes/packages/troy/web/index.html
@@ -33,4 +33,4 @@ body[data-hero-mode] .duel-playback,body[data-hero-mode] :is(.hero-play,.hero-ex
body[data-hero-mode=explore] .hero-play,body[data-hero-mode=fight] .hero-explore{display:none}
@media(max-width:600px){header p{display:none}#main-controls{left:12px;right:12px;top:66px;max-width:none;justify-content:flex-start}#main-controls button{padding:9px 10px}#scene-controls{top:168px}h1{font-size:24px}#error{inset:20% 12px}}
</style>
-</head><body class="controls-closed"><canvas id="view" tabindex="0" aria-label="Troy interactive scene"></canvas><header><h1>TROY</h1><p>Sea &middot; sand &middot; city</p></header><aside id="status" role="status">Loading the saved assets…</aside><nav aria-label="Scene viewpoints"><label class="water-quality">Water <select id="water-quality" aria-label="Water quality"><option value="auto">Auto</option><option value="low">Low</option><option value="balanced">Balanced</option><option value="high">High</option></select><span id="tier"></span></label></nav><div id="error" role="alert"></div><script type="module" src="./main.mjs"></script></body></html>
+</head><body class="controls-closed"><canvas id="view" tabindex="0" aria-label="Troy interactive scene"></canvas><header><h1>TROY</h1><p>Sea &middot; sand &middot; city</p></header><aside id="status" role="status">Loading the saved assets...</aside><nav aria-label="Scene viewpoints"><label class="water-quality">Water <select id="water-quality" aria-label="Water quality"><option value="auto">Auto</option><option value="low">Low</option><option value="balanced">Balanced</option><option value="high">High</option></select><span id="tier"></span></label></nav><div id="error" role="alert"></div><script type="module" src="./main.mjs"></script></body></html>
diff --git a/scenes/packages/troy/web/main.mjs b/scenes/packages/troy/web/main.mjs
index 35b87a18..a221bb9b 100644
--- a/scenes/packages/troy/web/main.mjs
+++ b/scenes/packages/troy/web/main.mjs
@@ -177,7 +177,7 @@ async function start(){
}
const updateCrowds=time=>{landingRuntime?.prepareView?.(camera,canvas.width,canvas.height,{receiverFloorY:-16,lightDirection:sun.target.position.clone().sub(sun.position)},{offscreenEnabled:fleetCulling});landingRuntime?.update(time);fleetRuntime?.prepareView?.(camera,canvas.width,canvas.height,{receiverFloorY:-16,lightDirection:sun.target.position.clone().sub(sun.position)},{offscreenEnabled:fleetCulling});fleetRuntime?.update(time);if(!heroPlay?.active()&&!heroExplore?.active())heroRuntime.sample(time);for(const {a,id,phase} of archerReferences){const pose=a.sample(time,phase);if(id===archerId)diagnostics.archers.pose=pose;}if(archerRuntime){archerRuntime.update(time);diagnostics.archers.runtime=archerRuntime.stats();diagnostics.archers.pose=archerPhase(time,archerSync?0:layout.actors.find(p=>p.id===archerId).phaseOffset);}for(const runtime of crowds){if(runtime.time)runtime.time.value=time;else runtime.update(time,true);}};
diagnostics.animatedActors=crowdMode==='static'?0:layout.actors.length;
- const status=document.querySelector('#status');status.innerHTML=`Troy Â\u00b7 ${actual.toUpperCase()}<br>${layout.actors.filter(a=>a.faction==='greek').length+(shoreFleetEnabled?224:landingRuntime?28:0)+(fleetRuntime?112:0)} Greeks Â\u00b7 ${layout.actors.filter(a=>a.faction==='trojan').length} Trojans Â\u00b7 ${layout.ships.length+(shoreFleetEnabled?8:landingRuntime?1:0)+(fleetRuntime?4:0)} ships<br>${crowdMode==='static'?'Static comparison':'Animated idle formations'}; ${shoreFleetEnabled?(fleetRuntime.playbackPhase?'twelve landing ships':'four offshore ships; eight shore crews'):fleetRuntime?'four rowing ships; one landing':landingRuntime?'one landing ship active':'landing in development'}. ${archerMode==='reference'?'One equipped archer; 47 placeholders.':archerEnabled?'48 archers.':'Archers pending.'}<br>Drag to orbit Â\u00b7 scroll or pinch to zoom`;
+ const status=document.querySelector('#status');status.innerHTML=`Troy \u00b7 ${actual.toUpperCase()}<br>${layout.actors.filter(a=>a.faction==='greek').length+(shoreFleetEnabled?224:landingRuntime?28:0)+(fleetRuntime?112:0)} Greeks \u00b7 ${layout.actors.filter(a=>a.faction==='trojan').length} Trojans \u00b7 ${layout.ships.length+(shoreFleetEnabled?8:landingRuntime?1:0)+(fleetRuntime?4:0)} ships<br>${crowdMode==='static'?'Static comparison':'Animated idle formations'}; ${shoreFleetEnabled?(fleetRuntime.playbackPhase?'twelve landing ships':'four offshore ships; eight shore crews'):fleetRuntime?'four rowing ships; one landing':landingRuntime?'one landing ship active':'landing in development'}. ${archerMode==='reference'?'One equipped archer; 47 placeholders.':archerEnabled?'48 archers.':'Archers pending.'}<br>Drag to orbit \u00b7 scroll or pinch to zoom`;
const updateControls=()=>{if(continuous)limitOrbitEnvelope(camera.position,controls.target);controls.update();if(continuous)limitOrbitEnvelope(camera.position,controls.target);};
const setView=name=>{const v=sceneViews[name];if(!v)throw Error(`Unknown view ${name}`);if(heroExplore?.active())heroExplore.stop();const framed=framePresetView(v,camera.aspect);camera.position.fromArray(framed.position);controls.target.fromArray(framed.target);updateControls();diagnostics.view=name;for(const b of document.querySelectorAll('nav button'))b.setAttribute('aria-pressed',String(b.dataset.view===name));};
for(const [id,v] of Object.entries(sceneViews)){const b=document.createElement('button');b.textContent=v.label;b.dataset.view=id;b.addEventListener('click',()=>{if(heroPlay?.active())heroPlay.stop();setView(id);});document.querySelector('nav').append(b);scope.defer(()=>b.remove(),'view button');}
@@ -200,7 +200,7 @@ async function start(){
range.type='range';range.min='0';range.max=String(landingRuntime.duration);range.step='any';range.value='0';range.setAttribute('aria-label','Landing time');range.oninput=()=>{frozen=true;setSceneTime(Number(range.value));};
label.append('Landing time ',range);panel.append(play,replay,label,readout);document.body.append(panel);scope.defer(()=>panel.remove(),'landing panel');landingControls={play,range,readout,last:''};
}
- const refreshLandingControls=()=>{if(!landingControls)return;const c=landingControls,shown=Math.min(t,landingRuntime.duration),complete=shown>=landingRuntime.duration,second=complete?Math.ceil(shown):Math.floor(shown),key=second+':'+complete;if(c.last!==key){c.readout.textContent=`${second} / ${Math.ceil(landingRuntime.duration)} s Â\u00b7 ${fleetRuntime?.playbackPhase?.()??landingRuntime.stats().sequence.phase}`;c.last=key;}c.range.value=String(shown);c.play.textContent=frozen?'Play':'Pause';};
+ const refreshLandingControls=()=>{if(!landingControls)return;const c=landingControls,shown=Math.min(t,landingRuntime.duration),complete=shown>=landingRuntime.duration,second=complete?Math.ceil(shown):Math.floor(shown),key=second+':'+complete;if(c.last!==key){c.readout.textContent=`${second} / ${Math.ceil(landingRuntime.duration)} s \u00b7 ${fleetRuntime?.playbackPhase?.()??landingRuntime.stats().sequence.phase}`;c.last=key;}c.range.value=String(shown);c.play.textContent=frozen?'Play':'Pause';};
const heroPanel=document.createElement('section');scope.defer(()=>heroPanel.remove(),'hero panel');heroPanel.className='hero-controls';heroPanel.setAttribute('aria-label','Hero duel playback');
const heroPlayButton=document.createElement('button'),heroReset=document.createElement('button'),heroLabel=document.createElement('label'),heroRange=document.createElement('input'),heroReadout=document.createElement('output');
heroPlay=scope.use(createHeroPlay(THREE,{canvas,pair:heroRuntime,groundHeight:contactGround.heightAt,camera,controls,onBeforeStart:()=>heroExplore?.stop(),onStart:()=>{frozen=false;},onStop:()=>heroRuntime.reset(t),onPause:()=>{frozen=true;},onResume:()=>{frozen=false;},isPaused:()=>frozen}),'hero controls');
@@ -209,12 +209,12 @@ async function start(){
heroRange.type='range';heroRange.min='0';heroRange.max=String(heroRuntime.stats().duration);heroRange.step='any';heroRange.id='hero-time';heroRange.setAttribute('aria-label','Hero duel time');heroRange.oninput=()=>{frozen=true;heroRuntime.seek(Number(heroRange.value),t);};
heroLabel.append('Duel time ',heroRange);heroPanel.append(heroPlayButton,heroReset,heroLabel,heroReadout,heroPlay.element);document.body.append(heroPanel);
let sceneControls=null;for(const node of[heroPlayButton,heroReset,heroLabel,heroReadout])node.classList.add('duel-playback');
- const refreshHeroControls=()=>{const s=heroRuntime.stats(),exploring=heroExplore?.active();sceneControls?.update(exploring?'explore':heroPlay.active()?'fight':'overview');heroPanel.classList.toggle('exploring',Boolean(exploring));heroPlayButton.textContent=heroPlay.active()||exploring?'Watch paired duel':s.mode==='face-off'?'Start duel':s.complete?'Replay duel':frozen?'Play duel':'Pause duel';heroRange.disabled=heroPlay.active()||exploring;heroLabel.hidden=Boolean(exploring);heroRange.value=String(s.elapsed);heroReadout.textContent=exploring?'Exploring Troy':heroPlay.active()?'Playable arena Â\u00b7 Leave fight to return to face-off':`${s.elapsed.toFixed(1)} / ${s.duration.toFixed(1)} s Â\u00b7 ${s.phase}`;};
+ const refreshHeroControls=()=>{const s=heroRuntime.stats(),exploring=heroExplore?.active();sceneControls?.update(exploring?'explore':heroPlay.active()?'fight':'overview');heroPanel.classList.toggle('exploring',Boolean(exploring));heroPlayButton.textContent=heroPlay.active()||exploring?'Watch paired duel':s.mode==='face-off'?'Start duel':s.complete?'Replay duel':frozen?'Play duel':'Pause duel';heroRange.disabled=heroPlay.active()||exploring;heroLabel.hidden=Boolean(exploring);heroRange.value=String(s.elapsed);heroReadout.textContent=exploring?'Exploring Troy':heroPlay.active()?'Playable arena \u00b7 Leave fight to return to face-off':`${s.elapsed.toFixed(1)} / ${s.duration.toFixed(1)} s \u00b7 ${s.phase}`;};
if(sceneQuery.get('duel')==='1')heroRuntime.start(0);refreshHeroControls();
let worldContacts=null,exploreReturnView=null,worldContactsClosed=false;const getWorldContacts=()=>{if(worldContactsClosed)throw Error('Exploration contacts closed');if(!worldContacts){scene.updateMatrixWorld(true);worldContacts=createWorldContacts(THREE,{staticMeshes:staticContacts,dynamicMeshes:()=>[...gateBatches.values()]});}return worldContacts;};const explorationWorld=scope.use({blocked:box=>getWorldContacts().blocked(box),cameraDistance:(...args)=>getWorldContacts().cameraDistance(...args),stats:()=>worldContacts?.stats()??{staticRecords:0,cells:0,queries:0,triangleChecks:0,disposed:worldContactsClosed},dispose(){worldContactsClosed=true;worldContacts?.dispose();worldContacts=null;}},'exploration contacts');
heroExplore=scope.use(createHeroExplorePlay(THREE,{canvas,pair:heroRuntime,groundHeight:contactGround.heightAt,world:explorationWorld,gate:cityGate,camera,controls,onBeforeStart:()=>{if(heroPlay.active())heroPlay.stop();},onStart:()=>{frozen=false;exploreReturnView=diagnostics.view;diagnostics.view='exploring';for(const b of document.querySelectorAll('nav button'))b.setAttribute('aria-pressed','false');},onStop:()=>{heroRuntime.reset(t);diagnostics.view=exploreReturnView??'heroes';for(const b of document.querySelectorAll('nav button'))b.setAttribute('aria-pressed',String(b.dataset.view===diagnostics.view));},onPause:()=>{frozen=true;},onResume:()=>{frozen=false;},isPaused:()=>frozen}),'exploration controls');heroPanel.append(heroExplore.element);
const gatePanel=document.createElement('section');gatePanel.className='gate-controls';gatePanel.setAttribute('aria-label','Troy gate');const gateButton=document.createElement('button'),gateReadout=document.createElement('output');gateButton.textContent='Open gate';gateButton.onclick=()=>{cityGate.setOpen(!cityGate.stats().targetOpen);};gatePanel.append(gateButton,gateReadout);document.body.append(gatePanel);scope.defer(()=>gatePanel.remove(),'gate panel');
- let gateUiKey='';const refreshGateControls=()=>{const s=cityGate.stats(),key=[s.targetOpen,s.moving,s.openness===1,s.blockedByOccupant,diagnostics.view==='gate'].join(':');if(key===gateUiKey)return;gateUiKey=key;gateButton.textContent=s.targetOpen?'Close gate':'Open gate';gateReadout.textContent=s.moving?(s.blockedByOccupant?'Gate waiting Â\u00b7 step clear':s.targetOpen?'Opening':'Closing'):s.openness===1?'Gate open':'Gate closed';gatePanel.hidden=diagnostics.view!=='gate';};refreshGateControls();
+ let gateUiKey='';const refreshGateControls=()=>{const s=cityGate.stats(),key=[s.targetOpen,s.moving,s.openness===1,s.blockedByOccupant,diagnostics.view==='gate'].join(':');if(key===gateUiKey)return;gateUiKey=key;gateButton.textContent=s.targetOpen?'Close gate':'Open gate';gateReadout.textContent=s.moving?(s.blockedByOccupant?'Gate waiting \u00b7 step clear':s.targetOpen?'Opening':'Closing'):s.openness===1?'Gate open':'Gate closed';gatePanel.hidden=diagnostics.view!=='gate';};refreshGateControls();
sceneControls=scope.use(createSceneControls({canvas,heroPanel,nav:document.querySelector('nav'),status,landingPanel:document.querySelector('.landing-controls'),gatePanel,onExplore:()=>heroExplore.active()?heroExplore.stop():heroExplore.start(heroPlay.stats().player??'achilles'),onFight:()=>heroPlay.active()?heroPlay.stop():heroPlay.start(heroExplore.stats().player??'achilles')}),'scene HUD');
const animate=()=>{const now=performance.now(),dt=Math.min(.05,(now-last)/1000);if(!frozen&&qualityMode==='auto'&&document.visibilityState==='visible')applyWaterTier(qualityController.sample(now-last,now-qualityStart));last=now;if(!frozen)t+=dt;waveTime.value=t;shoreWater.time.value=t;updateControls();heroPlay.update(frozen?0:dt);heroExplore.update(frozen?0:dt);cityGate.update(dt);updateTerrainDetail();updateCrowds(t);refreshLandingControls();refreshHeroControls();refreshGateControls();prepareFleetVisibility();renderer.render(scene,camera);diagnostics.renderedFrames=(diagnostics.renderedFrames??0)+1;diagnostics.renderedTime=t;};
scope.defer(()=>renderer.setAnimationLoop(null),'animation loop');renderer.setAnimationLoop(animate);
diff --git a/site/package.json b/site/package.json
index ef105e6d..c9f9daeb 100644
--- a/site/package.json
+++ b/site/package.json
@@ -6,7 +6,7 @@
"scripts": {
"assets": "bun scripts/build-assets.mjs",
"dev": "astro dev",
- "build": "node scripts/fetch-mirror.mjs && node scripts/build-site-media.mjs && node scripts/scene-inputs.mjs && node scripts/scene-pack.mjs && node scripts/scene-runtime.mjs && node scripts/stage-troy.mjs && astro build && node scripts/finalize-site.mjs && node scripts/subset-site-fonts.mjs && node scripts/troy-publication.mjs && node scripts/build-info.mjs",
+ "build": "node scripts/validate-public-text.mjs --source && node scripts/fetch-mirror.mjs && node scripts/build-site-media.mjs && node scripts/scene-inputs.mjs && node scripts/scene-pack.mjs && node scripts/scene-runtime.mjs && node scripts/stage-troy.mjs && astro build && node scripts/finalize-site.mjs && node scripts/subset-site-fonts.mjs && node scripts/troy-publication.mjs && node scripts/build-info.mjs && node scripts/validate-public-text.mjs",
"stage:scene": "node scripts/scene-inputs.mjs && node scripts/scene-pack.mjs && node scripts/scene-runtime.mjs",
"preview": "astro preview",
"check": "astro check",
diff --git a/site/scripts/bridge-encoding.mjs b/site/scripts/bridge-encoding.mjs
new file mode 100644
index 00000000..314c5891
--- /dev/null
+++ b/site/scripts/bridge-encoding.mjs
@@ -0,0 +1,22 @@
+/** One explicit migration of the reviewed legacy Bridge metadata. Not a general text repair. */
+export function repairBridgeMetadata(bytes) {
+ try {
+ new TextDecoder('utf-8', { fatal: true }).decode(bytes);
+ throw new Error('Bridge migration expects the legacy invalid UTF-8 input');
+ } catch (error) {
+ if (!(error instanceof TypeError)) throw error;
+ }
+ const high = [...bytes].filter(byte => byte > 127);
+ if (high.length !== 7 || high.filter(byte => byte === 0xb1).length !== 6 || high.filter(byte => byte === 0xb2).length !== 1) {
+ throw new Error('Unexpected Bridge legacy symbols; inspect the input before migration');
+ }
+ const text = new TextDecoder('windows-1252').decode(bytes);
+ const before = JSON.parse(text);
+ if (!before.tile_layout?.includes('\u00b12') || !before.water_inputs?.signed_shore_distance?.includes('\u00b1300') || !before.collision?.conservative_filter?.includes('512\u00b2')) {
+ throw new Error('Unexpected Bridge descriptive fields');
+ }
+ const repaired = new TextEncoder().encode(text);
+ const after = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(repaired));
+ if (JSON.stringify(before) !== JSON.stringify(after)) throw new Error('Bridge metadata meaning changed');
+ return repaired;
+}
diff --git a/site/scripts/bridge-encoding.test.ts b/site/scripts/bridge-encoding.test.ts
new file mode 100644
index 00000000..3dd998a9
--- /dev/null
+++ b/site/scripts/bridge-encoding.test.ts
@@ -0,0 +1,18 @@
+import { expect, test } from 'bun:test';
+import { repairBridgeMetadata } from './bridge-encoding.mjs';
+
+test('explicit legacy Bridge migration preserves JSON and changes only the seven symbol bytes', () => {
+ const text = '{"tile_layout":"near ±2, mid ±6 with ±2 hole, far ±20 with ±6 hole","water_inputs":{"signed_shore_distance":"clamped ±300"},"collision":{"conservative_filter":"512²"},"number":12.5,"files":[{"sha256":"abc","bytes":42}]}';
+ const legacy = Uint8Array.from([...text].map(char => char.charCodeAt(0)));
+ expect(() => new TextDecoder('utf-8', { fatal: true }).decode(legacy)).toThrow();
+ const repaired = repairBridgeMetadata(legacy);
+ expect(new TextDecoder('utf-8', { fatal: true }).decode(repaired)).toBe(text);
+ expect(JSON.parse(new TextDecoder().decode(repaired))).toEqual(JSON.parse(text));
+ expect(repaired.length).toBe(legacy.length + 7);
+});
+
+test('migration refuses unexpected legacy bytes, symbol counts and already valid inputs', () => {
+ expect(() => repairBridgeMetadata(Buffer.from('{"value":"clean"}'))).toThrow();
+ expect(() => repairBridgeMetadata(Uint8Array.of(0xb1, 0xb2, 0xe9))).toThrow();
+ expect(() => repairBridgeMetadata(Uint8Array.of(0xb1, 0xb2))).toThrow();
+});
diff --git a/site/scripts/check-all-pages.mjs b/site/scripts/check-all-pages.mjs
index ea9bbe86..906bf67f 100644
--- a/site/scripts/check-all-pages.mjs
+++ b/site/scripts/check-all-pages.mjs
@@ -4,6 +4,7 @@ import puppeteer from 'puppeteer-core';
import { chromeExecutable } from './build-site-media.mjs';
import { inspectHtml, routeForFile, isEmbeddedDocument } from './static-validation-core.mjs';
import { compareSitemapRoutes } from './sitemap-routes.mjs';
+import {assertReadableControlText,collectReadableControlText} from './scene-controls-proof.mjs';
const base = process.argv[2] ?? 'http://127.0.0.1:4175';
const out = resolve(process.argv[3] ?? '.cache/validation');
const root = resolve('dist');
@@ -41,7 +42,9 @@ try {
const response = await page.goto(new URL(route, base).href, { waitUntil: 'networkidle0', timeout: 30000 });
const status = response?.status();
if (status !== 200 && !(route === '/404.html' && status === 404)) report.errors.push({ route, type: 'http', status });
- report.pages.push({ route, status });
+ const renderedText=await page.evaluate(collectReadableControlText);
+ try{assertReadableControlText(renderedText,route);}catch(error){report.errors.push({route,type:'text',message:error.message});}
+ report.pages.push({ route, status, renderedText });
} catch (error) { report.errors.push({ route, type: 'navigation', message: error.message }); }
}
await page.close();
@@ -52,5 +55,5 @@ try {
await mkdir(out, { recursive: true });
await writeFile(join(out, 'all-page-console.json'), JSON.stringify(report, null, 2));
}
-console.log(`${report.pages.length} routes visited; ${report.errors.length} console, script, navigation or HTTP errors.`);
+console.log(`${report.pages.length} routes visited; ${report.errors.length} text, console, script, navigation or HTTP errors.`);
if (report.errors.length) process.exitCode = 1;
diff --git a/site/scripts/preview-coverage.test.ts b/site/scripts/preview-coverage.test.ts
new file mode 100644
index 00000000..c7dbca64
--- /dev/null
+++ b/site/scripts/preview-coverage.test.ts
@@ -0,0 +1,60 @@
+import { expect, test } from 'bun:test';
+import { readFile } from 'node:fs/promises';
+import troy from '../src/data/troy.json';
+import foundry from '../src/data/packs/foundry-floor.json';
+import media from '../src/data/scene-media.json';
+import mirror from '../src/data/mirror-manifest.json';
+import commons from '../src/data/commons-build.json';
+
+const source = (path: string) => readFile(new URL(path, import.meta.url), 'utf8');
+
+test('homepage includes both current Troy captures with scene and pack links in a two-column scene grid', async () => {
+ const page = await source('../src/pages/index.astro');
+ const cards = page.slice(page.indexOf('aria-labelledby="made-heading"'));
+ expect(troy.posters).toHaveLength(2);
+ expect(cards).toMatch(/<ScenePoster\s+images=\{troy\.posters\}/);
+ expect(cards).toContain('href="/scenes/troy/"');
+ expect(cards).toContain('href="/packs/troy/"');
+ expect(cards).toContain('md:grid-cols-2');
+ expect(cards).not.toContain('mt-8 grid gap-10 md:grid-cols-3');
+ const sizes = page.match(/const CARD_SIZES = ([^;]+);/)![1]!;
+ expect(sizes).toContain('50vw');
+ expect(sizes).toContain('632px');
+});
+
+test('Foundry featured samples include two campus buildings alongside process and transport equipment', async () => {
+ const page = await source('../src/pages/packs/index.astro');
+ const selected = JSON.parse(page.match(/const featured = (\[[^\n]+\])/)![1]!) as string[];
+ expect(selected).toHaveLength(6);
+ const assets = selected.map(slug => foundry.assets.find(asset => asset.slug === slug)!);
+ expect(assets.every(Boolean)).toBe(true);
+ expect(assets.filter(asset => asset.group === 'campus')).toHaveLength(2);
+ expect(assets.some(asset => asset.group === 'tools')).toBe(true);
+ expect(assets.some(asset => asset.group === 'transport')).toBe(true);
+ const card = page.slice(page.indexOf('href="/packs/foundry-floor/"'));
+ expect(card.indexOf('image={foundryCampusPoster}')).toBeGreaterThan(0);
+ expect(card.indexOf('image={foundryCampusPoster}')).toBeLessThan(card.indexOf('featured.map'));
+});
+
+test('Foundry pack leads its inventory with a genuine campus capture and descriptive caption', async () => {
+ const page = await source('../src/components/FoundryFloorPack.astro');
+ const intro = page.slice(0, page.indexOf('aria-labelledby="inventory"'));
+ expect(intro).toContain('image={foundryCampusPoster}');
+ expect(intro).toContain('<figcaption');
+ expect(intro).toContain('campus buildings');
+});
+
+test('the clearer Foundry campus image is immutably pinned while retaining the previous aerial capture', () => {
+ const campus = media['foundry-floor'].captures.campus;
+ const path = 'media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival.png';
+ expect(campus.poster.inputPath).toBe(path);
+ expect(campus.poster.alt).toContain('entrance');
+ expect(campus.capture.view).toBe('Arrival');
+ expect(campus.capture.source).toContain('Unretouched');
+ expect(media['foundry-floor'].captures['campus-aerial'].poster.inputPath).not.toBe(path);
+ const pin = mirror.files.find(row => row.path === path)!;
+ expect(pin).toBeDefined();
+ expect(pin.bytes).toBe(campus.capture.pngBytes);
+ expect(pin.sha256).toBe(campus.capture.pngSha256);
+ expect(commons.images.find(row => row.inputPath === path)).toEqual(campus.poster);
+});
diff --git a/site/scripts/public-text.mjs b/site/scripts/public-text.mjs
new file mode 100644
index 00000000..428005ad
--- /dev/null
+++ b/site/scripts/public-text.mjs
@@ -0,0 +1,45 @@
+import {parse,parseFragment} from 'parse5';
+import ts from 'typescript';
+import {createRequire} from 'node:module';
+import {pathToFileURL} from 'node:url';
+const require=createRequire(import.meta.url),astroRequire=createRequire(require.resolve('astro/package.json'));
+const {parse:parseAstro}=await import(pathToFileURL(astroRequire.resolve('@astrojs/compiler-rs')).href);
+
+export function decodeUtf8(bytes,context='text'){
+ try{return new TextDecoder('utf-8',{fatal:true}).decode(bytes);}
+ catch(error){throw new Error(`${context}: invalid UTF-8`,{cause:error});}
+}
+// Recognizable UTF-8 bytes saved after Latin-1/Windows-1252 decoding. Single
+// accented letters are valid; these multi-character byte sequences are damaged.
+export function textProblems(text){
+ const problems=[];
+ const continuation='[\\u0080-\\u00bf\\u20ac\\u201a\\u0192\\u201e\\u2026\\u2020\\u2021\\u02c6\\u2030\\u0160\\u2039\\u0152\\u017d\\u2018\\u2019\\u201c\\u201d\\u2022\\u2013\\u2014\\u02dc\\u2122\\u0161\\u203a\\u0153\\u017e\\u0178]';
+ const pattern=new RegExp('\\ufffd|\\u00c3'+continuation+'|\\u00c2'+continuation+'|\\u00e2'+continuation+continuation+'|\\u00ef\\u00bb\\u00bf|\\u00f0(?:\\u0178|\\u009f)','gu');
+ for(const match of text.matchAll(pattern)){problems.push({offset:match.index,value:match[0]});if(problems.length===100)break;}
+ return problems;
+}
+export function inspectPublicText(bytes,name){
+ const problems=[];let source;
+ try{source=decodeUtf8(bytes,name);}catch(error){return [{kind:'utf8',context:name,message:error.message}];}
+ const check=(text,context)=>{
+ const inspect=value=>{for(const hit of textProblems(value))problems.push({kind:'mojibake',context,offset:hit.offset,value:hit.value,message:'Damaged text '+JSON.stringify(hit.value)});};inspect(text);
+ if(/&(?:#(?:x[\da-f]+|\d+)|[a-z][a-z\d]+);/i.test(text)){function visit(node){if(node.nodeName==='#text')inspect(node.value);for(const attr of node.attrs??[])inspect(attr.value);for(const child of node.childNodes??[])visit(child);}visit(parseFragment(text));}
+ };
+ const syntax=(context,error)=>problems.push({kind:'syntax',context,message:String(error.message??error)});
+ check(source,'raw source');
+ const javascript=(text,context,kind=ts.ScriptKind.JS)=>{
+ const tree=ts.createSourceFile(context,text,ts.ScriptTarget.Latest,true,kind);
+ for(const diagnostic of tree.parseDiagnostics)syntax(context,ts.flattenDiagnosticMessageText(diagnostic.messageText,' '));
+ function visit(node){if(ts.isStringLiteralLike(node)||[ts.SyntaxKind.TemplateHead,ts.SyntaxKind.TemplateMiddle,ts.SyntaxKind.TemplateTail].includes(node.kind))check(node.text,context+' literal');ts.forEachChild(node,visit);}visit(tree);
+ };
+ const json=(text,context)=>{try{const value=JSON.parse(text);function visit(value){if(typeof value==='string')check(value,context+' string');else if(value&&typeof value==='object'){for(const[key,child]of Object.entries(value)){check(key,context+' key');visit(child);}}}visit(value);}catch(error){syntax(context,error);}};
+ if(/\.(?:[cm]?js|jsx|ts|tsx)$/.test(name))javascript(source,name,/\.tsx$/.test(name)?ts.ScriptKind.TSX:/\.jsx$/.test(name)?ts.ScriptKind.JSX:/\.ts$/.test(name)?ts.ScriptKind.TS:ts.ScriptKind.JS);
+ else if(/\.(?:json|map)$/.test(name))json(source,name);
+ else if(/\.astro$/.test(name)){
+ try{const result=parseAstro(source);for(const diagnostic of result.diagnostics??[])if(diagnostic.severity===1||diagnostic.severity==='error')syntax(name,diagnostic.message??diagnostic.text??'Astro parse error');function visit(node){if(!node||typeof node!=='object')return;if((node.type==='Literal'||node.type==='JSXText')&&typeof node.value==='string')check(node.value,name+' '+node.type);if(node.type==='TemplateElement'&&typeof node.value?.cooked==='string')check(node.value.cooked,name+' template');for(const value of Object.values(node)){if(Array.isArray(value))for(const child of value)visit(child);else if(value&&typeof value==='object')visit(value);}}visit(result.ast);}catch(error){syntax(name,error);}
+ }
+ else if(/\.(?:html|svg|xml)$/.test(name)){
+ const document=parse(source);function visit(node){if(node.nodeName==='#text')check(node.value,'HTML text');for(const attr of node.attrs??[]){check(attr.value,'HTML '+attr.name);if(/^on/.test(attr.name))javascript(attr.value,name+' '+attr.name);}if(node.tagName==='script'){const text=(node.childNodes??[]).map(child=>child.value??'').join(''),type=node.attrs?.find(attr=>attr.name==='type')?.value??'';if(['application/json','application/ld+json','importmap'].includes(type))json(text,name+' script');else if(!type||type==='module'||/javascript|typescript/.test(type))javascript(text,name+' script',ts.ScriptKind.TS);}else for(const child of node.childNodes??[])visit(child);if(node.content)visit(node.content);}visit(document);
+ }
+ return problems;
+}
diff --git a/site/scripts/public-text.test.ts b/site/scripts/public-text.test.ts
new file mode 100644
index 00000000..f528f44e
--- /dev/null
+++ b/site/scripts/public-text.test.ts
@@ -0,0 +1,44 @@
+import {expect,test} from 'bun:test';
+import {readFile} from 'node:fs/promises';
+import {parse} from 'parse5';
+import {decodeUtf8,textProblems,inspectPublicText} from './public-text.mjs';
+
+test('strict UTF-8 rejects legacy bytes, truncation and overlong encodings with a file context',()=>{
+ for(const bytes of [Uint8Array.of(0xb1),Uint8Array.of(0xc3),Uint8Array.of(0xc0,0xaf)])expect(()=>decodeUtf8(bytes,'terrain/manifest.json')).toThrow(/terrain\/manifest.json.*UTF-8/);
+ expect(decodeUtf8(new TextEncoder().encode('± m² café 日本語'),'valid.json')).toBe('± m² café 日本語');
+});
+test('known first-stage and repeated mojibake are rejected without banning multilingual text',()=>{
+ for(const damaged of ['Loading \u00e2\u20ac\u00a6','Loading \u00c3\u00a2\u00e2\u201a\u00ac\u00c2\u00a6','\u00c3\u0192\u00e2\u20ac\u0161·','caf\u00c3\u00a9','\u00e2\u201a\u00ac','\ufffd'])expect(textProblems(damaged).length).toBeGreaterThan(0);
+ for(const valid of ['café · 50%…','São Tomé; Ângela; Ã; â; £; ©','日本語 中文 한국어 العربية Ελληνικά','± 2 m²; “quoted” — text'])expect(textProblems(valid)).toEqual([]);
+});
+test('decoded JavaScript literals, templates, HTML entities and JSON strings cannot hide corruption',()=>{
+ for(const [source,name]of [
+ [String.raw`const status="Loading \u00e2\u20ac\u00a6";`,'bundle.js'],
+ ['const status=`Loading \\u00c3\\u00a2\\u00e2\\u201a\\u00ac\\u00c2\\u00a6 ${1}`;','module.mjs'],
+ ['<p>Loading &#226;&#8364;&#166;</p>','index.html'],
+ ['<button title="caf&#195;&#169;">Go</button>','index.html'],
+ [String.raw`{"label":"Loading \u00e2\u20ac\u00a6"}`,'runtime.json'],
+ [String.raw`<script>const label="caf\u00c3\u00a9";</script>`,'frame.html'],
+ [String.raw`<button onclick="this.textContent='caf\u00c3\u00a9'">Go</button>`,'index.html'],
+ ['const html="Loading &#226;&#8364;&#166;";','bundle.js'],
+ ])expect(inspectPublicText(new TextEncoder().encode(source),name).some(p=>p.kind==='mojibake')).toBe(true);
+ expect(inspectPublicText(new TextEncoder().encode('export const label="café 日本語 ·";'),'good.mjs')).toEqual([]);
+});
+test('malformed textual input is reported instead of silently escaping parsing checks',()=>{
+ expect(inspectPublicText(new TextEncoder().encode('const x = "unterminated'),'bad.js').some(p=>p.kind==='syntax')).toBe(true);
+ expect(inspectPublicText(new TextEncoder().encode('{"x":'),'bad.json').some(p=>p.kind==='syntax')).toBe(true);
+ expect(inspectPublicText(Uint8Array.of(0xb1),'bad.json').some(p=>p.kind==='utf8')).toBe(true);
+});
+test('Astro expressions and expression attributes expose cooked strings without treating self-closing scripts as HTML',()=>{
+ for(const source of [String.raw`<p>{"Loading \u00e2\u20ac\u00a6"}</p>`,String.raw`<p title={"Loading \u00e2\u20ac\u00a6"}>ok</p>`])expect(inspectPublicText(new TextEncoder().encode(source),'page.astro').some(p=>p.kind==='mojibake')).toBe(true);
+ expect(inspectPublicText(new TextEncoder().encode('<script type="application/ld+json" set:html={JSON.stringify({name:"café"})} /><p>日本語</p>'),'good.astro')).toEqual([]);
+});
+test('Troy initial loading text is actually readable after HTML parsing',async()=>{
+ const html=await readFile(new URL('../../scenes/packages/troy/web/index.html',import.meta.url));const document=parse(decodeUtf8(html,'index.html'));let status='';
+ function visit(node:any){if(node.attrs?.some((a:any)=>a.name==='id'&&a.value==='status'))status=node.childNodes.map((child:any)=>child.value??'').join('');for(const child of node.childNodes??[])visit(child);}visit(document);
+ expect(status).toBe('Loading the saved assets...');
+});
+test('Troy scene status and playback templates contain readable decoded labels',async()=>{
+ const bytes=await readFile(new URL('../../scenes/packages/troy/web/main.mjs',import.meta.url));
+ expect(inspectPublicText(bytes,'main.mjs')).toEqual([]);
+});
diff --git a/site/scripts/publish-assets.mjs b/site/scripts/publish-assets.mjs
index e16d8053..fbfbb7d1 100644
--- a/site/scripts/publish-assets.mjs
+++ b/site/scripts/publish-assets.mjs
@@ -6,7 +6,7 @@ import {randomUUID} from 'node:crypto';
import {assetPath,verifyBytes,ASSET_BASE} from './mirror-core.mjs';
import {resolveNpmCli,WRANGLER_VERSION} from './deploy.mjs';
-export function assetContentType(path){if(path.endsWith('.zip'))return 'application/zip';if(path.endsWith('.glb'))return 'model/gltf-binary';throw Error('Unsupported asset upload type: '+path);}
+export function assetContentType(path){if(path.endsWith('.zip'))return 'application/zip';if(path.endsWith('.glb'))return 'model/gltf-binary';if(path.endsWith('.png'))return 'image/png';throw Error('Unsupported asset upload type: '+path);}
/** New immutable keys only. Existing different bytes are never overwritten. */
export async function publishAssets({mirror,records,request=fetch,upload,log=()=>{}}){
const seen=new Set();
diff --git a/site/scripts/publish-assets.test.ts b/site/scripts/publish-assets.test.ts
index bdba0c62..18c10cc4 100644
--- a/site/scripts/publish-assets.test.ts
+++ b/site/scripts/publish-assets.test.ts
@@ -5,6 +5,10 @@ import {tmpdir} from 'node:os';
import {hashBytes} from './mirror-core.mjs';
import {publishAssets,assetContentType} from './publish-assets.mjs';
+test('checked scene captures publish with the PNG MIME type',()=>{
+ expect(assetContentType('media/scenes/foundry-floor/preview-20261005-01/campus.png')).toBe('image/png');
+});
+
test('publication verifies every local pin before any mutation and refuses different immutable bytes',async()=>{
const mirror=await mkdtemp(join(tmpdir(),'kiln-upload-'));
try {
diff --git a/site/scripts/scene-controls-proof.mjs b/site/scripts/scene-controls-proof.mjs
index 18c72dd7..5651a272 100644
--- a/site/scripts/scene-controls-proof.mjs
+++ b/site/scripts/scene-controls-proof.mjs
@@ -1,4 +1,22 @@
import assert from 'node:assert/strict';
+import {textProblems} from './public-text.mjs';
+
+export function assertReadableControlText(observation,context='rendered controls'){
+ assert.ok(typeof observation?.text==='string'&&Array.isArray(observation.labels),`${context}: rendered text/labels missing`);
+ const check=(value,name)=>assert.equal(textProblems(value).length,0,`${context}: damaged ${name}: ${JSON.stringify(value)}`);
+ check(observation.text,'text');
+ for(const label of observation.labels){assert.ok(typeof label.attribute==='string'&&typeof label.value==='string',`${context}: label evidence missing`);check(label.value,`${label.attribute} (${label.element??'element'})`);}
+}
+/** DOM-readable body copy and CSS-visible label attributes; no pixel-visibility
+ * claim. Serialized into verifiers without touching scene controllers. */
+export function collectReadableControlText(scope=globalThis){
+ const attributes=['aria-label','aria-description','aria-valuetext','title','alt','placeholder'],labels=[];
+ for(const node of scope.document.querySelectorAll(attributes.map(name=>'['+name+']').join(','))){
+ if(!node.checkVisibility({visibilityProperty:true,opacityProperty:true}))continue;
+ for(const attribute of attributes){const value=node.getAttribute(attribute);if(value!==null)labels.push({element:node.tagName.toLowerCase()+(node.id?'#'+node.id:''),attribute,value});}
+ }
+ return {text:scope.document.body?.innerText??'',labels};
+}
const position = value => Array.isArray(value) && value.length >= 3 && value.every(Number.isFinite);
const freightKind = name => /^traffic-truck-tractor-lod\d$/.test(name) ? 'tractor' : /^traffic-trailer-(dryvan|flatbed|tanker)-lod\d$/.test(name) ? 'trailer' : null;
diff --git a/site/scripts/scene-controls-proof.test.ts b/site/scripts/scene-controls-proof.test.ts
index 9656e877..4381c530 100644
--- a/site/scripts/scene-controls-proof.test.ts
+++ b/site/scripts/scene-controls-proof.test.ts
@@ -1,5 +1,23 @@
import { expect, test } from 'bun:test';
-import { assertControlBackend, assertPanelObservation, assertPositionMotion, movingFreightKinds, freightScanPlan, visibleFreightKinds, assertFreightScanCamera } from './scene-controls-proof.mjs';
+import { assertControlBackend, assertPanelObservation, assertPositionMotion, movingFreightKinds, freightScanPlan, visibleFreightKinds, assertFreightScanCamera, assertReadableControlText, collectReadableControlText } from './scene-controls-proof.mjs';
+
+test('rendered control proof rejects damaged visible text and accessibility labels while retaining legitimate international copy',()=>{
+ const good={text:'Troy · Loading... café 日本語',labels:[{attribute:'aria-label',value:'± m² Ελληνικά'}]};const before=JSON.stringify(good);expect(()=>assertReadableControlText(good,'troy/webgpu')).not.toThrow();expect(JSON.stringify(good)).toBe(before);
+ for(const damaged of [
+ {...good,text:'Loading \u00e2\u20ac\u00a6'},
+ {...good,labels:[{attribute:'aria-label',value:'caf\u00c3\u00a9'}]},
+ {...good,labels:[{attribute:'title',value:'\ufffd'}]},
+ ])expect(()=>assertReadableControlText(damaged,'troy/webgl2')).toThrow(/troy\/webgl2.*(?:text|aria-label|title)/);
+ for(const missing of [null,{labels:[]},{text:'Ready'},{text:'Ready',labels:[{attribute:'title'}]}])expect(()=>assertReadableControlText(missing)).toThrow();
+});
+test('serialized rendered-text collection reads only visible labels without changing document or observer state',()=>{
+ const checks:unknown[]=[];const element=(attributes:Record<string,string>,visible=true)=>({tagName:'BUTTON',id:'more',checkVisibility:(options:unknown)=>{checks.push(options);return visible;},getAttribute:(name:string)=>attributes[name]??null});
+ const visible=element({'aria-label':'More controls',title:'café'}),hidden=element({'aria-label':'hidden \ufffd'},false);
+ const scope:any={document:{body:{innerText:'Farm · Ready'},querySelectorAll:()=>[visible,hidden]}};const prior=scope.document.body.innerText;
+ const serialized=new Function(`return (${collectReadableControlText.toString()})`)();const result=serialized(scope);
+ expect(result).toEqual({text:'Farm · Ready',labels:[{element:'button#more',attribute:'aria-label',value:'More controls'},{element:'button#more',attribute:'title',value:'café'}]});expect(scope.document.body.innerText).toBe(prior);expect(()=>assertReadableControlText(result)).not.toThrow();
+ expect(checks).toEqual([{visibilityProperty:true,opacityProperty:true},{visibilityProperty:true,opacityProperty:true}]);
+});
test('movement evidence requires finite positions of the same observed subject and meaningful horizontal travel', () => {
const before = { subject: 'farmer-yard-0', position: [0, 1, 0] };
diff --git a/site/scripts/scene-inputs.mjs b/site/scripts/scene-inputs.mjs
index 2eb8969e..5e3fbeb8 100644
--- a/site/scripts/scene-inputs.mjs
+++ b/site/scripts/scene-inputs.mjs
@@ -4,13 +4,18 @@ import { pathToFileURL } from 'node:url';
import { unzipSync } from 'fflate';
import { assetPath, fetchPinnedFile, verifyBytes } from './mirror-core.mjs';
import { resolveScenesDir } from './scene-source.mjs';
+import {decodeUtf8} from './public-text.mjs';
+import {isPublicTextFile} from './validate-public-text.mjs';
const SITE = resolve(import.meta.dirname, '..');
export function checkedSceneArchive(bytes, record) {
verifyBytes(bytes, record);
const files = unzipSync(bytes);
- for (const path of Object.keys(files)) assetPath(path);
+ for (const [path,content] of Object.entries(files)) {
+ assetPath(path);
+ if (isPublicTextFile(path)) decodeUtf8(content, `Scene archive ${record.path}: ${path}`);
+ }
return files;
}
diff --git a/site/scripts/scene-inputs.test.ts b/site/scripts/scene-inputs.test.ts
index 709c47b0..78744592 100644
--- a/site/scripts/scene-inputs.test.ts
+++ b/site/scripts/scene-inputs.test.ts
@@ -11,3 +11,9 @@ test('scene archives are hash pinned and refuse unsafe members before extraction
const unsafe = zipSync({ '../outside.txt': strToU8('no') });
expect(() => checkedSceneArchive(unsafe, { ...record, bytes: unsafe.length, sha256: hashBytes(unsafe) })).toThrow('Unsafe asset path');
});
+test('sealed scene staging refuses invalid UTF-8 metadata before extraction, retaining valid international text and binary inputs',()=>{
+ const bad=zipSync({'terrain/manifest.json':Uint8Array.of(0x7b,0x22,0x78,0x22,0x3a,0x22,0xb1,0x22,0x7d)});
+ expect(()=>checkedSceneArchive(bad,{bytes:bad.length,sha256:hashBytes(bad),path:'bridge.zip'})).toThrow(/bridge\.zip.*terrain\/manifest.json.*UTF-8/);
+ const manifest=strToU8('{"notes":"± m² café 日本語","height":1.25}'),model=Uint8Array.of(0xb1,0xff),good=zipSync({'terrain/manifest.json':manifest,'tiles/near.glb':model});const files=checkedSceneArchive(good,{bytes:good.length,sha256:hashBytes(good),path:'bridge.zip'});
+ expect(files['terrain/manifest.json']).toEqual(manifest);expect(files['tiles/near.glb']).toEqual(model);
+});
diff --git a/site/scripts/scene-pack.test.ts b/site/scripts/scene-pack.test.ts
index 77e01bf3..25b1da64 100644
--- a/site/scripts/scene-pack.test.ts
+++ b/site/scripts/scene-pack.test.ts
@@ -294,21 +294,21 @@ describe('scene pack catalog record', () => {
expect(() => stagedPackDirectory({ base: '/../escape/' }, '/site')).toThrow('Unexpected');
});
- test('the Golden Gate code5 delivery retains the g9 asset payload inside its runtime ceiling', () => {
+ test('the Golden Gate code6 delivery repairs terrain text and retains its runtime inside the ceiling', () => {
const record = scenePacks['golden-gate'];
- expect(record.release).toBe('g9-code5');
- expect(record.base).toBe('/scene-packs/golden-gate/g9-code5/');
- // Only the delivery release changes the asset manifest; every sealed g9 payload digest remains.
- expect(record).toMatchObject({ sealedFiles: 103, sealedBytes: 12_186_327, packJsonSha256: '748536356d9639c65c76bc18f1e865c3426f5ee49904239efcb9b9c24c8a1524', sha256sumsSha256: '75ce79fc746eafd27d7b597396489294a821fef5d88a05981b6bb9572159a58a' });
+ expect(record.release).toBe('g9-code6');
+ expect(record.base).toBe('/scene-packs/golden-gate/g9-code6/');
+ // Six plus/minus signs and one squared sign add seven UTF-8 bytes; models and runtime remain unchanged.
+ expect(record).toMatchObject({ sealedFiles: 103, sealedBytes: 12_186_334, packJsonSha256: '68233d46076cbf86d57502ce612f09d63e8cc125f0b521f19f9eacbec419deb7', sha256sumsSha256: '615c3c3cd059cdffc00a84e29c43296c9a7e951150cdb0f887594450ce1debea' });
expect(record.source).toBe('.cache/site-inputs/golden-gate/standalone');
expect(record.three).toBe('0.186.0');
expect(record.totalFiles).toBe(record.sealedFiles + 3);
for (const digest of [record.packJsonSha256, record.sha256sumsSha256, record.noticesSha256, record.runtime.sha256, record.runtime.modulesSha256]) expect(digest).toMatch(/^[0-9a-f]{64}$/);
- expect(record.runtime).toMatchObject({ kind: 'frame', file: 'index-DhpWxFro.js', bytes: 1_708_928, gzipBytes: 512_680 });
+ expect(record.runtime).toMatchObject({ kind: 'frame', file: 'index-DhpWxFro.js', bytes: 1_708_928, gzipBytes: 512_680, sha256: '1a01a81a912157936f05a2060f1df377c418607a83567753e4db2b0257bdb556' });
expect(checkCeiling('golden-gate', record.runtime).within).toBe(true);
expect(record.runtime.bytes).toBeLessThanOrEqual(CEILINGS['golden-gate'].bytes);
expect(goldenGateScene.assetBase).toBe(record.base);
- expect(stagedPackDirectory(record, '/site')).toBe(resolve('/site', 'public', 'scene-packs', 'golden-gate', 'g9-code5'));
+ expect(stagedPackDirectory(record, '/site')).toBe(resolve('/site', 'public', 'scene-packs', 'golden-gate', 'g9-code6'));
});
test('the Foundry Floor code5 delivery retains the review2 payload with a verified initial closure inside its ceiling', () => {
diff --git a/site/scripts/troy-scene-session.test.ts b/site/scripts/troy-scene-session.test.ts
index 123bd920..cc3ff60b 100644
--- a/site/scripts/troy-scene-session.test.ts
+++ b/site/scripts/troy-scene-session.test.ts
@@ -2,9 +2,9 @@ import {expect,test} from 'bun:test';
import {createTroySceneSession} from '../src/components/troy-scene-session';
function fixture(){
- const states:string[]=[],frames:any[]=[],listeners=new Set<(e:any)=>void>();let release:()=>void=()=>{};
- const session=createTroySceneSession({origin:'https://review.test',createFrame:()=>{const frame={src:'',removed:false,remove(){this.removed=true;},contentWindow:{troy:{ready:true,dispose:()=>new Promise<void>(r=>{release=r;}),stats:()=>({poseTextures:{references:0},lifecycle:{registered:2,completed:2}})},focus(){}}};frames.push(frame);return frame as any;},mount:()=>{},subscribe:listener=>{listeners.add(listener);return()=>listeners.delete(listener);},onState:s=>states.push(s),onProgress:()=>{},onExit:()=>{},clock:{set:()=>1,clear:()=>{}}});
- return{session,states,frames,listeners,release:()=>release(),message(source:any,origin='https://review.test',state='ready'){for(const listener of listeners)listener({origin,source,data:{source:'kiln-scene',state}} as any);}};
+ const states:string[]=[],progress:string[]=[],frames:any[]=[],listeners=new Set<(e:any)=>void>();let release:()=>void=()=>{};
+ const session=createTroySceneSession({origin:'https://review.test',createFrame:()=>{const frame={src:'',removed:false,remove(){this.removed=true;},contentWindow:{troy:{ready:true,dispose:()=>new Promise<void>(r=>{release=r;}),stats:()=>({poseTextures:{references:0},lifecycle:{registered:2,completed:2}})},focus(){}}};frames.push(frame);return frame as any;},mount:()=>{},subscribe:listener=>{listeners.add(listener);return()=>listeners.delete(listener);},onState:s=>states.push(s),onProgress:text=>progress.push(text),onExit:()=>{},clock:{set:()=>1,clear:()=>{}}});
+ return{session,states,progress,frames,listeners,release:()=>release(),message(source:any,origin='https://review.test',state='ready'){for(const listener of listeners)listener({origin,source,data:{source:'kiln-scene',state}} as any);}};
}
test('Troy review ignores foreign and obsolete frames and waits for resource teardown before removal',async()=>{
const f=fixture();f.session.start('/scene-packs/troy/candidate/web/');const frame=f.frames[0];f.message(frame.contentWindow,'https://foreign.test');f.message({});expect(f.states).toEqual(['loading']);f.message(frame.contentWindow);expect(f.states.at(-1)).toBe('ready');
@@ -14,3 +14,7 @@ test('Troy review ignores foreign and obsolete frames and waits for resource tea
test('Troy review only admits its same-origin staged entry',()=>{
const f=fixture();expect(()=>f.session.start('https://foreign.test/scene-packs/troy/a/web/')).toThrow();expect(()=>f.session.start('/unrelated/')).toThrow();expect(f.frames.length).toBe(0);
});
+
+test('Troy progress fallback displays readable loading text',()=>{
+ const f=fixture();f.session.start('/scene-packs/troy/candidate/web/');f.message(f.frames[0].contentWindow,'https://review.test','progress');expect(f.progress).toEqual(['Loading the scene...']);
+});
diff --git a/site/scripts/validate-public-text.mjs b/site/scripts/validate-public-text.mjs
new file mode 100644
index 00000000..4d829372
--- /dev/null
+++ b/site/scripts/validate-public-text.mjs
@@ -0,0 +1,28 @@
+import {readFile,readdir} from 'node:fs/promises';
+import {resolve,relative,basename} from 'node:path';
+import {fileURLToPath,pathToFileURL} from 'node:url';
+import {inspectPublicText} from './public-text.mjs';
+
+const SITE=fileURLToPath(new URL('../',import.meta.url));
+export const isPublicTextFile=path=>/\.(?:html|astro|[cm]?js|jsx|ts|tsx|json|map|css|txt|md|xml|svg|wgsl|glsl|vert|frag|csv|ya?ml)$/.test(path)||['_headers','_redirects','LICENSE','NOTICE'].includes(basename(path));
+// Deliberately maintained inputs only: test/negative fixtures and historical
+// evidence are not public UI. Published output has no fixture exemption.
+export function publicSourceRoots(repo){return [
+ 'site/src','scenes/packages/scene-kit/src','scenes/packages/farm/src','scenes/packages/farm/standalone',
+ 'scenes/packages/foundry-floor/src','scenes/packages/foundry-floor/standalone','scenes/packages/foundry-floor/standalone-campus',
+ 'scenes/packages/golden-gate/src','scenes/packages/golden-gate/standalone','scenes/packages/golden-gate/data','scenes/packages/golden-gate/source-data',
+ 'scenes/packages/troy/web',
+].map(path=>resolve(repo,path));}
+export async function validatePublicText({roots,base}={}){
+ const files=[];async function walk(dir){for(const entry of await readdir(dir,{withFileTypes:true})){const file=resolve(dir,entry.name);if(entry.isDirectory())await walk(file);else if(entry.isFile()&&isPublicTextFile(file))files.push(file);}}
+ for(const root of roots)await walk(root);
+ const errors=[];for(const file of files.sort()){const path=relative(base,file).replaceAll('\\','/');for(const problem of inspectPublicText(await readFile(file),path))errors.push({file:path,...problem});}
+ return {checked:files.length,errors};
+}
+if(process.argv[1]&&import.meta.url===pathToFileURL(resolve(process.argv[1])).href){
+ const args=process.argv.slice(2),source=args.includes('--source'),dist=args.includes('--dist')?resolve(args[args.indexOf('--dist')+1]):resolve(SITE,'dist');
+ const base=source?resolve(SITE,'..'):dist,roots=source?publicSourceRoots(base):[dist],result=await validatePublicText({roots,base});
+ console.log(`Public text (${source?'maintained source':'published output'}): ${result.checked} files, ${result.errors.length} errors.`);
+ for(const error of result.errors.slice(0,50))console.error(`${error.file}: ${error.kind}: ${error.context}: ${error.message}`);
+ if(result.errors.length)process.exitCode=1;
+}
diff --git a/site/scripts/validate-public-text.test.ts b/site/scripts/validate-public-text.test.ts
new file mode 100644
index 00000000..1aafdeee
--- /dev/null
+++ b/site/scripts/validate-public-text.test.ts
@@ -0,0 +1,12 @@
+import {expect,test} from 'bun:test';
+import {mkdtemp,writeFile,mkdir,rm} from 'node:fs/promises';
+import {tmpdir} from 'node:os';import {join} from 'node:path';
+import {validatePublicText,publicSourceRoots} from './validate-public-text.mjs';
+
+test('published text validation sees nested JSON, encoded JavaScript and invalid bytes while skipping binary models',async()=>{
+ const root=await mkdtemp(join(tmpdir(),'kiln-public-text-'));
+ try{await mkdir(join(root,'runtime'));await writeFile(join(root,'runtime','metadata.json'),Uint8Array.of(0x7b,0x22,0x78,0x22,0x3a,0x22,0xb1,0x22,0x7d));await writeFile(join(root,'bundle.js'),String.raw`const label="\u00e2\u20ac\u00a6";`);await writeFile(join(root,'model.glb'),Uint8Array.of(0xb1));await writeFile(join(root,'index.html'),'<p>café 日本語 ·</p>');const result=await validatePublicText({roots:[root],base:root});expect(result.checked).toBe(3);expect(result.errors.some(e=>e.file==='runtime/metadata.json'&&e.kind==='utf8')).toBe(true);expect(result.errors.some(e=>e.file==='bundle.js'&&e.kind==='mojibake')).toBe(true);}finally{await rm(root,{recursive:true,force:true});}
+});
+test('source gate covers all maintained scene UIs and site source without applying a broad fixture whitelist',()=>{
+ const paths=publicSourceRoots('/repository').map(path=>path.replaceAll('\\','/'));for(const suffix of ['site/src','packages/troy/web','packages/farm/src','packages/golden-gate/src','packages/foundry-floor/src'])expect(paths.some(path=>path.endsWith(suffix))).toBe(true);expect(paths.some(path=>path.includes('/tests'))).toBe(false);
+});
diff --git a/site/scripts/validate-static.mjs b/site/scripts/validate-static.mjs
index 90bd8856..1457aac0 100644
--- a/site/scripts/validate-static.mjs
+++ b/site/scripts/validate-static.mjs
@@ -8,6 +8,7 @@ import { ARCHIVE_INDEX_ROUTE, archiveIndexingErrors, copyErrors, DESCRIPTION_WAR
import {sealedTroyCache} from './sealed-cache.mjs';
import {viewerModelInput} from './viewer-model-input.mjs';
import { glbJsonText } from './private-data.mjs';
+import {validatePublicText} from './validate-public-text.mjs';
const site = resolve(dirname(fileURLToPath(import.meta.url)), '..');
const args = process.argv.slice(2);
@@ -35,6 +36,8 @@ for (const file of htmlFiles) {
const foundryFloorPack = JSON.parse(await readFile(resolve(site, 'src/data/packs/foundry-floor.json'), 'utf8'));
const errors = [];
const add = (page, kind, message) => errors.push({ page, kind, message });
+const textValidation=await validatePublicText({roots:[root],base:root});
+for(const error of textValidation.errors)add('/'+error.file,'encoding',`${error.kind}: ${error.context}: ${error.message}`);
const warnings = [];
const external = new Map();
const imageChecks = new Map();
diff --git a/site/scripts/verify-scene-controls.mjs b/site/scripts/verify-scene-controls.mjs
index af6251a0..64bb3c1c 100644
--- a/site/scripts/verify-scene-controls.mjs
+++ b/site/scripts/verify-scene-controls.mjs
@@ -7,7 +7,7 @@ import puppeteer from 'puppeteer-core';
import { sceneBrowserOptions } from '../../scenes/scripts/browser-options.mjs';
import { installTimingEvidence } from '../../scenes/scripts/timing-evidence.ts';
import { chromeExecutable } from './build-site-media.mjs';
-import { assertControlBackend, assertPanelObservation, assertPositionMotion, movingFreightKinds, freightScanPlan, visibleFreightKinds, assertFreightScanCamera } from './scene-controls-proof.mjs';
+import { assertControlBackend, assertPanelObservation, assertPositionMotion, movingFreightKinds, freightScanPlan, visibleFreightKinds, assertFreightScanCamera, assertReadableControlText, collectReadableControlText } from './scene-controls-proof.mjs';
const site = resolve(dirname(fileURLToPath(import.meta.url)), '..');
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
@@ -65,7 +65,7 @@ export async function main(argv = process.argv.slice(2)) {
scope: 'Actual public HUDs and real desktop-emulated touch; no physical-device, performance, owner appearance, collision completeness or freight joint-alignment acceptance.',
browserOptions: options, verifierSha256: hash(await readFile(fileURLToPath(import.meta.url))),
dependencies: {}, selected: { sceneFilter, backendFilter }, scenarios: [], errors: [], complete: false };
- for (const path of ['./scene-controls-proof.mjs', '../../scenes/scripts/timing-evidence.ts']) report.dependencies[path] = hash(await readFile(new URL(path, import.meta.url)));
+ for (const path of ['./scene-controls-proof.mjs', './public-text.mjs', '../../scenes/scripts/timing-evidence.ts']) report.dependencies[path] = hash(await readFile(new URL(path, import.meta.url)));
async function pin() {
assert.equal(hash(await readFile(join(site, 'dist/artifact-files.json'))), expected, 'Local artifact changed');
const response = await fetch(new URL('/_review/receipt.json', base)); assert.equal(response.status, 200);
@@ -97,7 +97,13 @@ export async function main(argv = process.argv.slice(2)) {
const iframe = await page.$('[data-mount] iframe');
const frame = iframe ? await iframe.contentFrame() : page.mainFrame(); assert.ok(frame);
await frame.waitForSelector('.ks-root canvas');
- const snapshot = () => frame.evaluate(() => window.__siteControlSnapshot());
+ const snapshot = async () => {
+ const observation=await frame.evaluate(() => window.__siteControlSnapshot());
+ observation.renderedText=await frame.evaluate(collectReadableControlText);
+ result.observations.lastRenderedText=observation.renderedText;
+ assertReadableControlText(observation.renderedText,`${backend}/${scene}`);
+ return observation;
+ };
const record = (name, detail) => { result.checks.push({ name, pass: true, detail }); console.log(`ok ${backend}/${scene}: ${name}`); };
await sleep(2000);
result.observations.initial = await snapshot();
diff --git a/site/src/components/FoundryFloorPack.astro b/site/src/components/FoundryFloorPack.astro
index 7005cc14..3555ba4f 100644
--- a/site/src/components/FoundryFloorPack.astro
+++ b/site/src/components/FoundryFloorPack.astro
@@ -7,12 +7,14 @@ import { modelName, harnessName, groupAssetAttribution } from "../lib/attributio
import ResponsiveImage from "./ResponsiveImage.astro";
import pack from "../data/packs/foundry-floor.json";
import foundryFloor from "../data/foundry-floor.json";
+import sceneMedia from "../data/scene-media.json";
import { bytes, bounds, listOf as list, number } from "../lib/catalog";
import { foundryGalleryHref } from "../lib/gallery";
// Everything on this page is read from src/data/packs/foundry-floor.json, which scripts/stage-foundry-floor.mjs
// writes from the staged scene pack (pack.json, data/assets.json, licenses/ASSET-LICENSE.txt) and the GLBs.
const hasCampus = pack.assets.some(asset => asset.group === "campus");
+const foundryCampusPoster = sceneMedia["foundry-floor"].captures.campus.poster;
type Asset = (typeof pack.assets)[number];
type RecordedAsset = Asset & { attribution?: { author:string; requestedEffort:string|null; note?:string }; reviewStatus?:string; lod: (Asset['lod'] & {form?:string}) | null };
const groups = pack.groups.map((group) => ({
@@ -46,6 +48,20 @@ const triangleSplit = (metrics: Asset["metrics"]) =>
people and robots who work there{hasCampus ? ", plus the campus models included in this release." : "."}
</p>
</div>
+{hasCampus && (
+ <figure class="mt-4">
+ <ResponsiveImage
+ image={foundryCampusPoster}
+ sizes="(max-width: 767px) calc(100vw - 32px), (max-width: 1279px) calc(100vw - 64px), (max-width: 1439px) calc(100vw - 144px), 1296px"
+ eager
+ class="block w-full"
+ />
+ <figcaption class="mt-3 text-caption text-dim">
+ The campus buildings assembled from the pack’s head and hall modules,
+ with roads, parking and planting. The scene also opens the working fab interior.
+ </figcaption>
+ </figure>
+)}
<div class="mt-4 border-y border-ink py-6">
<div>
<p class="max-w-reading">
diff --git a/site/src/components/troy-scene-session.ts b/site/src/components/troy-scene-session.ts
index be0c8d6d..6d7cdccb 100644
--- a/site/src/components/troy-scene-session.ts
+++ b/site/src/components/troy-scene-session.ts
@@ -77,7 +77,7 @@ export function createTroySceneSession(options: Options) {
if (data?.source !== 'kiln-scene') return;
if (data.state === 'progress' || data.state === 'started') {
renew();
- options.onProgress(data.text ?? 'Loading the scene…');
+ options.onProgress(data.text ?? 'Loading the scene...');
} else if (data.state === 'ready') {
untimer();
options.onState('ready');
diff --git a/site/src/data/commons-build.json b/site/src/data/commons-build.json
index 2fc68080..f11500fb 100644
--- a/site/src/data/commons-build.json
+++ b/site/src/data/commons-build.json
@@ -1549,6 +1549,15 @@
"srcsetWebp": "/media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-320.webp 320w, /media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-480.webp 480w, /media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-672.webp 672w, /media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-768.webp 768w, /media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-1024.webp 1024w, /media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-1440.webp 1440w",
"srcsetAvif": "/media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-320.avif 320w, /media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-480.avif 480w, /media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-672.avif 672w, /media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-768.avif 768w, /media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-1024.avif 1024w, /media/scenes/golden-gate/g9-code5/golden-gate-scene-drive-1440.avif 1440w",
"inputPath": "media/scenes/golden-gate/g9-code5/golden-gate-scene-drive.png"
+ },
+ {
+ "src": "/media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival.webp",
+ "width": 1440,
+ "height": 925,
+ "alt": "The Foundry Floor campus entrance, with the head buildings and long fab halls, a glazed connecting canopy, roads, parking and planting.",
+ "srcsetWebp": "/media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-320.webp 320w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-480.webp 480w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-672.webp 672w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-768.webp 768w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-1024.webp 1024w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-320.avif 320w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-480.avif 480w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-672.avif 672w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-768.avif 768w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-1024.avif 1024w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-1440.avif 1440w",
+ "inputPath": "media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival.png"
}
],
"archives": [
diff --git a/site/src/data/mirror-manifest.json b/site/src/data/mirror-manifest.json
index 779b8e6f..69a7e20a 100644
--- a/site/src/data/mirror-manifest.json
+++ b/site/src/data/mirror-manifest.json
@@ -2300,6 +2300,11 @@
"path": "media/scenes/golden-gate/g9-code5/golden-gate-scene-drive.png",
"bytes": 728452,
"sha256": "487793596f730d5424c1b25016fbc27408d6d2ab707c57343acbbc6a52b1bc56"
+ },
+ {
+ "path": "media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival.png",
+ "bytes": 106931,
+ "sha256": "b10146e32cb3f58ead9c977169f9e0059d994fb03fb40c838bcb4c04ff38181b"
}
]
}
diff --git a/site/src/data/scene-inputs.json b/site/src/data/scene-inputs.json
index 6e6b042c..ac252ee7 100644
--- a/site/src/data/scene-inputs.json
+++ b/site/src/data/scene-inputs.json
@@ -10,10 +10,10 @@
},
{
"id": "golden-gate",
- "release": "g9-code5",
- "path": "scene-inputs/alignment-motion3-20261003/golden-gate.zip",
- "bytes": 8329648,
- "sha256": "78f956059db0b6265f250f64b96bbc5bf4e52e02eec629cc9dcf7cb4aa991f8d"
+ "release": "g9-code6",
+ "path": "scene-inputs/text-cleanup-20261005/golden-gate.zip",
+ "bytes": 8329691,
+ "sha256": "a2c5425ea357d1ef55237a89a05d364db3d891188d3a2453e6189941da14238f"
},
{
"id": "foundry-floor",
diff --git a/site/src/data/scene-media.json b/site/src/data/scene-media.json
index a6974070..94db9789 100644
--- a/site/src/data/scene-media.json
+++ b/site/src/data/scene-media.json
@@ -102,28 +102,35 @@
"captures": {
"campus": {
"poster": {
- "src": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus.webp",
+ "src": "/media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival.webp",
"width": 1440,
"height": 925,
- "alt": "The Foundry Floor campus from above: paired fab buildings along a central road, with parking and planting at the near entrance.",
- "srcsetWebp": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-320.webp 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-480.webp 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-672.webp 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-768.webp 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1024.webp 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1440.webp 1440w",
- "srcsetAvif": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-320.avif 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-480.avif 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-672.avif 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-768.avif 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1024.avif 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1440.avif 1440w",
- "inputPath": "media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus.png"
+ "alt": "The Foundry Floor campus entrance, with the head buildings and long fab halls, a glazed connecting canopy, roads, parking and planting.",
+ "srcsetWebp": "/media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-320.webp 320w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-480.webp 480w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-672.webp 672w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-768.webp 768w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-1024.webp 1024w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-320.avif 320w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-480.avif 480w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-672.avif 672w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-768.avif 768w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-1024.avif 1024w, /media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival-1440.avif 1440w",
+ "inputPath": "media/scenes/foundry-floor/preview-20261005-01/foundry-floor-campus-arrival.png"
},
"capture": {
- "tool": "scripts/capture-scene-poster.mjs",
- "view": "campus",
- "release": "ff3-review2",
+ "tool": ".localdata/preview-coverage/capture-campus-candidate.mjs",
+ "view": "Arrival",
+ "release": "ff3-review2-code5",
"size": [
1440,
925
],
- "browser": "Chrome/154.0.8037.58",
- "source": "The staged scene runtime, captured from its canvas with controls hidden; nothing composited or retouched.",
- "runtimeSha256": "fdf0724ffc38717f3289aaaa0de3891be907a74a2a1570b1a9e926e4e306398d",
- "packJsonSha256": "6ce49d05791bf42d21f3628237a5cf005ce9f2fa15938f0c321430d781c2c5d4",
- "pngBytes": 116562,
- "pngSha256": "7f841f81e7030b4dff5ed2f6a0605644dd32f3730028767841ead7ed8b808229"
+ "browser": "Chrome/154.0.8037.93",
+ "source": "Actual staged Foundry Floor scene; Arrival view, orbit drag up30px, wheel -100, controls hidden. Unretouched canvas capture.",
+ "camera": {
+ "drag": [
+ 0,
+ -30
+ ],
+ "wheel": -100
+ },
+ "runtimeSha256": "252a06c4a8812d803942e581182e5e3a73951982def9e4ae1fea686d7c5a3899",
+ "packJsonSha256": "822be1171621273dfdf857fe6ca320ed41d16e03c49fc49860c13e7092be4836",
+ "pngBytes": 106931,
+ "pngSha256": "b10146e32cb3f58ead9c977169f9e0059d994fb03fb40c838bcb4c04ff38181b"
}
},
"interior": {
@@ -151,6 +158,32 @@
"pngBytes": 264001,
"pngSha256": "083d6d07d4038edc49ee665a5b542494b6606116259029879d41614b2bc74c5b"
}
+ },
+ "campus-aerial": {
+ "poster": {
+ "src": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus.webp",
+ "width": 1440,
+ "height": 925,
+ "alt": "The Foundry Floor campus from above: paired fab buildings along a central road, with parking and planting at the near entrance.",
+ "srcsetWebp": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-320.webp 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-480.webp 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-672.webp 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-768.webp 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1024.webp 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1440.webp 1440w",
+ "srcsetAvif": "/media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-320.avif 320w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-480.avif 480w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-672.avif 672w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-768.avif 768w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1024.avif 1024w, /media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus-1440.avif 1440w",
+ "inputPath": "media/scenes/foundry-floor/ff3-review2/foundry-floor-scene-campus.png"
+ },
+ "capture": {
+ "tool": "scripts/capture-scene-poster.mjs",
+ "view": "campus",
+ "release": "ff3-review2",
+ "size": [
+ 1440,
+ 925
+ ],
+ "browser": "Chrome/154.0.8037.58",
+ "source": "The staged scene runtime, captured from its canvas with controls hidden; nothing composited or retouched.",
+ "runtimeSha256": "fdf0724ffc38717f3289aaaa0de3891be907a74a2a1570b1a9e926e4e306398d",
+ "packJsonSha256": "6ce49d05791bf42d21f3628237a5cf005ce9f2fa15938f0c321430d781c2c5d4",
+ "pngBytes": 116562,
+ "pngSha256": "7f841f81e7030b4dff5ed2f6a0605644dd32f3730028767841ead7ed8b808229"
+ }
}
}
},
diff --git a/site/src/data/scene-packs.json b/site/src/data/scene-packs.json
index 2d6ed314..4da30a1f 100644
--- a/site/src/data/scene-packs.json
+++ b/site/src/data/scene-packs.json
@@ -17,16 +17,16 @@
"golden-gate": {
"schema": "kiln.scene-pack/1",
"id": "golden-gate",
- "release": "g9-code5",
+ "release": "g9-code6",
"three": "0.186.0",
"source": ".cache/site-inputs/golden-gate/standalone",
- "base": "/scene-packs/golden-gate/g9-code5/",
+ "base": "/scene-packs/golden-gate/g9-code6/",
"sealedFiles": 103,
- "sealedBytes": 12186327,
+ "sealedBytes": 12186334,
"totalFiles": 106,
- "totalBytes": 12240929,
- "packJsonSha256": "748536356d9639c65c76bc18f1e865c3426f5ee49904239efcb9b9c24c8a1524",
- "sha256sumsSha256": "75ce79fc746eafd27d7b597396489294a821fef5d88a05981b6bb9572159a58a",
+ "totalBytes": 12240936,
+ "packJsonSha256": "68233d46076cbf86d57502ce612f09d63e8cc125f0b521f19f9eacbec419deb7",
+ "sha256sumsSha256": "615c3c3cd059cdffc00a84e29c43296c9a7e951150cdb0f887594450ce1debea",
"noticesSha256": "1c27b112542ccdf247a592f918c7753cea14852a1e5234012bc06bd5ef9b859b",
"runtime": {
"kind": "frame",
diff --git a/site/src/data/troy-delivery.json b/site/src/data/troy-delivery.json
index 392fd65d..a14029e8 100644
--- a/site/src/data/troy-delivery.json
+++ b/site/src/data/troy-delivery.json
@@ -1,7 +1,7 @@
{
- "release": "troy-20261005-06",
- "path": "packs/troy/troy-20261005-06/troy-scene.zip",
- "bytes": 51588957,
- "sha256": "65e278f9451c6eadceac23f10336dfc607088515b4fa8064848834703e5e6b50",
- "sourceManifestSha256": "ec4e68d1bf03934a73d85c7617bda990dbe16c3600c0251eab3d817c3555827e"
+ "release": "troy-20261005-07",
+ "path": "packs/troy/troy-20261005-07/troy-scene.zip",
+ "bytes": 51588709,
+ "sha256": "ae37a3114e4bfbff5f0650267e828c3c4068a2df9bc10a825058851cda543482",
+ "sourceManifestSha256": "d3f153c4e3da8e3a2fee8db585ce7e7959bb6a7651db60f0c798e915e1fa21e4"
}
diff --git a/site/src/data/troy.json b/site/src/data/troy.json
index ab74a861..35993b2a 100644
--- a/site/src/data/troy.json
+++ b/site/src/data/troy.json
@@ -1,7 +1,7 @@
{
"name": "Troy",
- "base": "/scene-packs/troy/troy-20261005-06/",
- "release": "troy-20261005-06",
+ "base": "/scene-packs/troy/troy-20261005-07/",
+ "release": "troy-20261005-07",
"license": "CC0-1.0",
"assetCount": 21,
"description": "A Bronze Age coast, battlefield and city. Explore Troy or fight as Achilles or Hector.",
@@ -13,28 +13,28 @@
"url": "https://assets.kilnstudio.tools/packs/troy/delivery-20261005-01/troy-runtime.zip"
},
"scene": {
- "release": "troy-20261005-06",
- "path": "packs/troy/troy-20261005-06/troy-scene.zip",
- "bytes": 51588957,
- "sha256": "65e278f9451c6eadceac23f10336dfc607088515b4fa8064848834703e5e6b50",
- "sourceManifestSha256": "ec4e68d1bf03934a73d85c7617bda990dbe16c3600c0251eab3d817c3555827e",
- "url": "https://assets.kilnstudio.tools/packs/troy/troy-20261005-06/troy-scene.zip"
+ "release": "troy-20261005-07",
+ "path": "packs/troy/troy-20261005-07/troy-scene.zip",
+ "bytes": 51588709,
+ "sha256": "ae37a3114e4bfbff5f0650267e828c3c4068a2df9bc10a825058851cda543482",
+ "sourceManifestSha256": "d3f153c4e3da8e3a2fee8db585ce7e7959bb6a7651db60f0c798e915e1fa21e4",
+ "url": "https://assets.kilnstudio.tools/packs/troy/troy-20261005-07/troy-scene.zip"
},
"posters": [
{
- "src": "/scene-packs/troy/troy-20261005-06/media/scene-coast.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/scene-coast.webp",
"width": 1440,
"height": 900,
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/scene-coast.webp 1440w",
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/scene-coast.webp 1440w",
"alt": "Troy and its landed fleet, seen from above the sea"
},
{
- "src": "/scene-packs/troy/troy-20261005-06/media/scene-city.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/scene-city.webp",
"width": 1440,
"height": 900,
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/scene-city.webp 1440w",
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/scene-city.webp 1440w",
"alt": "Achilles and Hector fighting before Troy, with army formations and the city walls"
}
],
@@ -87,15 +87,15 @@
"runtimeDownload": {
"bytes": 302776,
"sha256": "d2e5c1a6885f509caeb9428980d74b2760bae735af81549ae08fdd825fadffa8",
- "url": "/scene-packs/troy/troy-20261005-06/models/wall-section.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/wall-section.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/wall-section.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/wall-section.webp",
"width": 1024,
"height": 1024,
"alt": "Wall section",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/wall-section.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/wall-section.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -146,15 +146,15 @@
"runtimeDownload": {
"bytes": 391512,
"sha256": "19322963f4704e5a9e4b31e242d7d1991126e0ffde750d57152a622089ac4f91",
- "url": "/scene-packs/troy/troy-20261005-06/models/city-gate.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/city-gate.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/city-gate.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/city-gate.webp",
"width": 1024,
"height": 1024,
"alt": "City gate",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/city-gate.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/city-gate.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -203,15 +203,15 @@
"runtimeDownload": {
"bytes": 330524,
"sha256": "d69aaca4db3b1963a28ea62fd5a54c9a2dbe277a083086f3c31e3270fd300b5b",
- "url": "/scene-packs/troy/troy-20261005-06/models/house.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/house.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/house.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/house.webp",
"width": 1024,
"height": 1024,
"alt": "Trojan Walk-in House",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/house.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/house.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -264,15 +264,15 @@
"runtimeDownload": {
"bytes": 492876,
"sha256": "6609d8e4f5be92b88f5a14facad3cb9cb39f43d257bc2bcec51adeaca66f41ee",
- "url": "/scene-packs/troy/troy-20261005-06/models/temple-hall.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/temple-hall.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/temple-hall.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/temple-hall.webp",
"width": 1024,
"height": 1024,
"alt": "Troy Citadel Temple Hall",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/temple-hall.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/temple-hall.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -317,15 +317,15 @@
"runtimeDownload": {
"bytes": 396772,
"sha256": "c438f0275186e34ad724dade9f22426a4ad4dab412a17ea7b1d62d468c151f4f",
- "url": "/scene-packs/troy/troy-20261005-06/models/war-galley.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/war-galley.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/war-galley.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/war-galley.webp",
"width": 1024,
"height": 1024,
"alt": "Greek War Galley",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/war-galley.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/war-galley.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -396,15 +396,15 @@
"runtimeDownload": {
"bytes": 373008,
"sha256": "55361985e3353e4a87944f61c1007eb725732a128bf7a33d3a989f3b26f34af3",
- "url": "/scene-packs/troy/troy-20261005-06/models/greek-soldier.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/greek-soldier.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/greek-soldier.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/greek-soldier.webp",
"width": 1024,
"height": 1024,
"alt": "Greek soldier",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/greek-soldier.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/greek-soldier.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -475,15 +475,15 @@
"runtimeDownload": {
"bytes": 352016,
"sha256": "97f6fe97902df9af9037518dc28699524c843f0b94136ec3f9c9850d2b57df6f",
- "url": "/scene-packs/troy/troy-20261005-06/models/trojan-soldier.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/trojan-soldier.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/trojan-soldier.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/trojan-soldier.webp",
"width": 1024,
"height": 1024,
"alt": "Trojan soldier",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/trojan-soldier.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/trojan-soldier.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -558,15 +558,15 @@
"runtimeDownload": {
"bytes": 547628,
"sha256": "1bb8b9b44044365a172eb5015c12b8493b6c47e3087178a7fa89b18e768e645f",
- "url": "/scene-packs/troy/troy-20261005-06/models/achilles.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/achilles.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/achilles.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/achilles.webp",
"width": 1024,
"height": 1024,
"alt": "Achilles",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/achilles.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/achilles.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -640,15 +640,15 @@
"runtimeDownload": {
"bytes": 428112,
"sha256": "70b6e63f742413ef4d3348071b8f917507d521e9e80739fcf30aaff5de5e054a",
- "url": "/scene-packs/troy/troy-20261005-06/models/hector.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/hector.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/hector.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/hector.webp",
"width": 1024,
"height": 1024,
"alt": "Hector",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/hector.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/hector.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -693,15 +693,15 @@
"runtimeDownload": {
"bytes": 171340,
"sha256": "5ca97cea350d7eb751bcfb214a89e0b83cc3e7bf3c317663ae4d5d51d6e32cd9",
- "url": "/scene-packs/troy/troy-20261005-06/models/olive.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/olive.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/olive.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/olive.webp",
"width": 1024,
"height": 1024,
"alt": "Mature courtyard olive",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/olive.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/olive.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -744,15 +744,15 @@
"runtimeDownload": {
"bytes": 82436,
"sha256": "0fbabf224cb33e55f3cc6480bfad8fd40175a15c0fa00f9072faa11e40e1ac89",
- "url": "/scene-packs/troy/troy-20261005-06/models/cypress.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/cypress.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/cypress.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/cypress.webp",
"width": 1024,
"height": 1024,
"alt": "Mediterranean courtyard cypress",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/cypress.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/cypress.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -797,15 +797,15 @@
"runtimeDownload": {
"bytes": 147416,
"sha256": "1769ec4b6d44f208af272b50056d4e01ceb7bf5a8605cbff49019595aef34fa3",
- "url": "/scene-packs/troy/troy-20261005-06/models/fig.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/fig.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/fig.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/fig.webp",
"width": 1024,
"height": 1024,
"alt": "Spreading courtyard fig",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/fig.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/fig.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -849,15 +849,15 @@
"runtimeDownload": {
"bytes": 47456,
"sha256": "4b2ad9c25c2035b02ebb72cc0336842c6c5a6441aada21cfe137d8749b3de51f",
- "url": "/scene-packs/troy/troy-20261005-06/models/shrub.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/shrub.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/shrub.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/shrub.webp",
"width": 1024,
"height": 1024,
"alt": "Low courtyard shrub",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/shrub.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/shrub.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -957,15 +957,15 @@
"runtimeDownload": {
"bytes": 248068,
"sha256": "03e257c29b54ad05f5f37381474fe6eba995f22d72fefba9e90e5d46bbe84b5c",
- "url": "/scene-packs/troy/troy-20261005-06/models/horse.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/horse.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/horse.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/horse.webp",
"width": 1024,
"height": 1024,
"alt": "Horse",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/horse.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/horse.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -1050,15 +1050,15 @@
"runtimeDownload": {
"bytes": 333340,
"sha256": "77c48aa6dbff40b212c5eacc4f340838358f71ee52ccc99966cd2bdc7f9b37e7",
- "url": "/scene-packs/troy/troy-20261005-06/models/wall-breached.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/wall-breached.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/wall-breached.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/wall-breached.webp",
"width": 1024,
"height": 1024,
"alt": "Wall section",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/wall-breached.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/wall-breached.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -1117,15 +1117,15 @@
"runtimeDownload": {
"bytes": 614312,
"sha256": "6b06d838c3f8016e5ca1f94abd6da317fc0825f83b3f12f932ae5968b5b60c29",
- "url": "/scene-packs/troy/troy-20261005-06/models/war-chariot.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/war-chariot.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/war-chariot.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/war-chariot.webp",
"width": 1024,
"height": 1024,
"alt": "Late Bronze Age war chariot",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/war-chariot.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/war-chariot.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -1170,15 +1170,15 @@
"runtimeDownload": {
"bytes": 137688,
"sha256": "b15e157bf0e01fab0c421e232c08ab2572a7c42738d4454f994dfa275e99b4d9",
- "url": "/scene-packs/troy/troy-20261005-06/models/sword.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/sword.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/sword.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/sword.webp",
"width": 1024,
"height": 1024,
"alt": "Bronze Age Sword",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/sword.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/sword.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -1229,15 +1229,15 @@
"runtimeDownload": {
"bytes": 182764,
"sha256": "90a164bf7cbc9c98f7877bce029ed1ab016ab8043086f724ce70b92a0feff72a",
- "url": "/scene-packs/troy/troy-20261005-06/models/shield.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/shield.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/shield.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/shield.webp",
"width": 1024,
"height": 1024,
"alt": "Round shield",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/shield.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/shield.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -1312,15 +1312,15 @@
"runtimeDownload": {
"bytes": 137780,
"sha256": "861da8a5dad6265aa823c4b86f73142da14accfa48f486372241fba3e51ac366",
- "url": "/scene-packs/troy/troy-20261005-06/models/bow-set.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/bow-set.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/bow-set.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/bow-set.webp",
"width": 1024,
"height": 1024,
"alt": "Bow, arrows and quiver",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/bow-set.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/bow-set.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -1378,15 +1378,15 @@
"runtimeDownload": {
"bytes": 279516,
"sha256": "aeb622fb0a37233a707030a81a3e9b991fff0b2ed17924956bd6ab61c53d9770",
- "url": "/scene-packs/troy/troy-20261005-06/models/wooden-horse.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/wooden-horse.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/wooden-horse.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/wooden-horse.webp",
"width": 1024,
"height": 1024,
"alt": "Trojan Horse",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/wooden-horse.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/wooden-horse.webp 1024w"
},
"review": {
"ownerAccepted": false,
@@ -1557,15 +1557,15 @@
"runtimeDownload": {
"bytes": 14464712,
"sha256": "d2ba5e05718c7889134d51bb89680a7dc05b5b24100c4f3e9d89b18034991dfb",
- "url": "/scene-packs/troy/troy-20261005-06/models/battle-scene-reference.glb"
+ "url": "/scene-packs/troy/troy-20261005-07/models/battle-scene-reference.glb"
},
"poster": {
- "src": "/scene-packs/troy/troy-20261005-06/media/battle-scene-reference.webp",
+ "src": "/scene-packs/troy/troy-20261005-07/media/battle-scene-reference.webp",
"width": 1024,
"height": 1024,
"alt": "Battle before the gate",
"srcsetAvif": "",
- "srcsetWebp": "/scene-packs/troy/troy-20261005-06/media/battle-scene-reference.webp 1024w"
+ "srcsetWebp": "/scene-packs/troy/troy-20261005-07/media/battle-scene-reference.webp 1024w"
},
"review": {
"ownerAccepted": false,
diff --git a/site/src/pages/index.astro b/site/src/pages/index.astro
index 60ffc9d6..a9de74ca 100644
--- a/site/src/pages/index.astro
+++ b/site/src/pages/index.astro
@@ -27,6 +27,7 @@ import {
import exchange from "../data/home-exchange.json";
import foundryFloor from "../data/foundry-floor.json";
import foundryFloorPack from "../data/packs/foundry-floor.json";
+import troy from "../data/troy.json";
import { sceneRuntimes } from "virtual:kiln-scenes";
import { farmScene, foundryFloorScene, goldenGateScene } from "../data/scenes";
import { PUBLIC_EXAMPLES } from "../../scripts/collection.mjs";
@@ -92,7 +93,7 @@ kiln_save(${JSON.stringify(save!.arguments, null, 2)})
// → asset.revisionId: ${save!.result.asset!.revisionId}
// … project arguments, file hashes and further result fields omitted`;
const floorIncluded = house.revisionId === floor.asset.revisionId;
-const CARD_SIZES = "(max-width: 767px) 100vw, 33vw";
+const CARD_SIZES = "(max-width: 767px) calc(100vw - 32px), (max-width: 1279px) calc(50vw - 48px), (max-width: 1439px) calc(50vw - 88px), 632px";
---
<BaseLayout
@@ -379,7 +380,7 @@ const CARD_SIZES = "(max-width: 767px) 100vw, 33vw";
</p>
{PACKS_ENABLED ? (
<>
- <div class="mt-8 grid gap-10 md:grid-cols-3 md:gap-8">
+ <div class="mt-8 grid gap-10 md:grid-cols-2 md:gap-8">
<article>
<a href="/packs/farm/" class="block no-underline text-ink" aria-label="Shapes &amp; Seasons Farm">
<ScenePoster images={farmScene.posterImages} sizes={CARD_SIZES} decorative />
@@ -428,6 +429,20 @@ const CARD_SIZES = "(max-width: 767px) 100vw, 33vw";
<a class="text-link" href={foundryFloor.packRoute}>The Foundry Floor pack</a>
</div>
</article>
+ <article>
+ <a href="/scenes/troy/" class="block no-underline text-ink" aria-label="Troy scene">
+ <ScenePoster images={troy.posters} sizes={CARD_SIZES} decorative />
+ <h3 class="mt-5 text-ink">Troy</h3>
+ </a>
+ <p class="mt-2 text-dim">
+ A Bronze Age coast, city and battlefield. Explore Troy or fight as
+ Achilles or Hector, with {troy.assetCount} reusable assets.
+ </p>
+ <div class="mt-2 flex flex-wrap gap-x-6">
+ <a class="text-link" href="/scenes/troy/">Open the scene</a>
+ <a class="text-link" href="/packs/troy/">Browse the Troy pack</a>
+ </div>
+ </article>
</div>
<article class="mt-10 grid items-center gap-6 border-t border-rule pt-8 md:grid-cols-3 md:gap-8">
<ul class="grid grid-cols-3 gap-2 md:col-span-2 md:grid-cols-6">
diff --git a/site/src/pages/packs/index.astro b/site/src/pages/packs/index.astro
index a662419c..8abe0190 100644
--- a/site/src/pages/packs/index.astro
+++ b/site/src/pages/packs/index.astro
@@ -7,8 +7,10 @@ import { farm, vehicles } from "../../lib/catalog";
import { PACKS_ENABLED } from "../../lib/config";
import foundryFloor from "../../data/foundry-floor.json";
import foundryFloorPack from "../../data/packs/foundry-floor.json";
+import sceneMedia from "../../data/scene-media.json";
+const foundryCampusPoster = sceneMedia["foundry-floor"].captures.campus.poster;
// Six of the Foundry Floor models stand for the pack on its card; each must be in the staged catalog.
-const featured = ["euv-scanner", "etch-cluster-tool", "vertical-furnace", "stocker", "oht-vehicle", "foup"].map((slug) => {
+const featured = ["s1-head-w", "s2-hall-w", "euv-scanner", "etch-cluster-tool", "stocker", "oht-vehicle"].map((slug) => {
const asset = foundryFloorPack.assets.find((candidate) => candidate.slug === slug);
if (!asset) throw new Error(`The Foundry Floor catalog has no model ${slug}`);
return asset;
@@ -81,7 +83,9 @@ const featured = ["euv-scanner", "etch-cluster-tool", "vertical-furnace", "stock
)}
{PACKS_ENABLED && (
<a href="/packs/foundry-floor/" aria-label="Foundry Floor" class="mt-12 grid items-center gap-8 border-b border-rule pb-8 lg:grid-cols-3">
- <div class="grid grid-cols-3 gap-2 lg:col-span-2">
+ <div class="lg:col-span-2">
+ <ResponsiveImage image={foundryCampusPoster} sizes="(max-width: 1024px) 100vw, 65vw" />
+ <div class="mt-2 grid grid-cols-3 gap-2">
{featured.map((asset) => (
<div class="bg-stage">
<ResponsiveImage
@@ -91,12 +95,13 @@ const featured = ["euv-scanner", "etch-cluster-tool", "vertical-furnace", "stock
/>
</div>
))}
+ </div>
</div>
<div>
<h2 class="text-subheading">{foundryFloorPack.name}</h2>
<p class="mt-5">
{foundryFloorPack.assetCount} models for a fictional 2 nm-class chip
- fab: process tools, wafer transport and storage, the cleanroom’s
+ fab: campus buildings, process tools, wafer transport and storage, the cleanroom’s
floor, ceiling and walls, and the people and robots who work there.
</p>
<p class="mt-4 text-dim">
diff --git a/src/__tests__/workspace-bootstrap.test.ts b/src/__tests__/workspace-bootstrap.test.ts
index 0d463653..2d7df2a9 100644
--- a/src/__tests__/workspace-bootstrap.test.ts
+++ b/src/__tests__/workspace-bootstrap.test.ts
@@ -53,7 +53,7 @@ it('registers the existing local skill tree for OpenCode and preserves edits whe
it('defaults to core skills, supports optional skills, and refuses invalid setup before writing', async () => {
const root = await mkdtemp(join(tmpdir(), 'kiln-bootstrap-'));
try {
- const task = join(root, 'assets café');
+ const task = join(root, 'assets caf\u00e9');
const invalid = run([task, '--harness', 'codex', '--skills', 'unknown'], root);
expect(invalid.status).toBe(1);
expect(await readdir(root)).toEqual([]);
@@ -80,7 +80,7 @@ it('repairs a moved workspace without replacing assets or silently overwriting e
const root = await mkdtemp(join(tmpdir(), 'kiln-bootstrap-'));
try {
const before = join(root, 'before');
- const after = join(root, 'after café');
+ const after = join(root, 'after caf\u00e9');
expect(run([before, '--harness', 'opencode'], root).status).toBe(0);
await writeFile(join(before, 'keep.kiln.js'), '// authored source');
await rename(before, after);