Skip to content

Validate authored render resources with native Rust and cross-platform CI - #6

Closed
selun3 wants to merge 1 commit into
assets/render-starter-packfrom
assets/render-native-admission
Closed

selun3 wants to merge 1 commit into
assets/render-starter-packfrom
assets/render-native-admission

Conversation

@selun3

@selun3 selun3 commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Closed as superseded on 2026-11-02 at the owner's request. Personal #11 at aea20b0115c402209fb2149558830e95f406ac0e contains this PR's complete published head (GitHub ancestry comparison verified). The branch, commits and evidence are preserved. Current Render repairs and acceptance continue in tangency-labs/solidcraft#6201. This closure is not a merge, feature-completeness claim or validation of newer source.


Purpose and ancestry

This is a resource-validation slice stacked on #4, not a renderer replacement or an application texture importer. It is based on 3ffaa5bdb3f807eb80503c4222205f60ccc10a03 and is published as 6d79d44fa403581e4508d7c9df5e163ff85085bf in the personal fork. The separate consolidated renderer checkpoint on lab/render-materials is not modified.

Implemented

  • A bounded Rust example, crates/render/examples/validate_starter.rs, exercises the actual public solidcraft-render APIs for source admission, decoding, normalization, periodic sampling and mip preparation.
  • 192 eight-bit texture inputs are fully decoded and compared against the original authoring pixel receipts. Every normalized channel is checked against independent sRGB/data expectations. All 192 mip chains reach 1×1, for 1,920 levels including the base levels, with mean-preservation and repeat-sampling checks.
  • 48 grayscale-16 height inputs retain exact native sample hashes and ranges and remain rejected by the strict eight-bit texture route. No height role, displacement adapter or silent quantization is added.
  • 24 HDR inputs pass the cooperative native decoder, header/primaries checks, complete float-pixel digest generation, spherical means and six directional cosine integrals. The unit comparison field remains exactly one; black vacuum has energy owner none and exactly zero radiance.
  • An explicit V-up to image-down-V mapping is checked without negating the OpenGL green channel; filtered normals are renormalized. This does not establish model tangent frames, mirrored-instance behavior or GPU parity.
  • A one-command, read-only gate combines authoring reproduction and native checks. It fingerprints 418 source inputs before and after execution, rejects mixed-revision evidence and retains uniquely named reports/logs under ignored target/.
  • A dedicated Render resource gate workflow runs relevant draft/ready PRs on Ubuntu 24.04 and Windows Server 2025, with pinned action revisions, read-only permissions and retained failure evidence. It does not replace full application CI.

No existing PNG, HDR, authoring recipe, generator hash, Rust dependency or production renderer source is changed. All new code/tooling is original contributor work with exact attribution under MIT OR Apache-2.0.

Validation actually completed on Pegasus / Windows

The complete new gate finished with exit code 0 on 2026-10-22; 13/13 stages passed, and all fingerprinted source inputs remained unchanged.

Check Result
Python authoring and runner regressions 60 passed, 0 failed
Original catalog and prepared SELENE validators PASS; prepared-source/runtime limitations preserved
Combined pack validator PASS
Exact material pixel reproduction 240 PNGs passed
HDR encoded reproduction 24 HDRs passed
Native render library tests 115 passed, 0 failed
New native regression tests 9 passed, 0 failed
Full native resource admission 192 texture maps + 48 height sources + 24 HDRs passed
Rust formatting and render all-target Clippy (-D warnings) PASS
Asset attribution 728 files, all attributed
Existing icon standards 17 tests passed
Workflow YAML/pin/permission structural review PASS

The native checker verified 26,448,369 encoded resource bytes. New regressions include cancellation/source reuse, no partial mip publication, invalid hashes/paths/budgets, duplicate known fields, unknown map roles and the V-axis convention.

Local receipt: target/render-starter-checks/20261022T075707.045947Z/report.json. Generated receipts/logs are deliberately not committed. GitHub-hosted workflow results must be checked separately; the local pass is not a claim that hosted jobs have completed. FFmpeg independent decoding was not rerun in this Windows gate.

Remaining boundaries

runtime_ready stays false. No persistent body/face bindings, native texture save/reopen, application library UI, CPU/GPU reference scenes, photorealism claim or native light-rig installation is included. The full aggregate cargo xtask ci has not been completed for this new commit; the PR remains a draft pending broader integration acceptance. Source admission and numeric conformance are prerequisites, not evidence of final rendered quality.

The authored rig calibration blockers and prepared SELENE-source admission are unchanged. The existing source lock is not promoted merely because the pack passes native input checks.

Reproduce

python -m pip install -r assets/render/starter/tools/requirements.txt
python -B assets/render/starter/tools/check_all.py

See native admission documentation. Related: #4 (authored resources), #3 (catalog and SELENE planning), #1 (separate renderer implementation). No upstream merge is requested.

Add a bounded native conformance example, source-stable authoring gate and cross-platform resource CI. Check 192 normalized textures, 48 separate height inputs, 24 HDR probes and 1920 mip levels without enabling runtime bindings or changing source assets. Pegasus: 60 Python tests, 115 render unit tests, 9 native regression tests, Clippy, formatting, attribution and icons passed. Full workspace CI and application integration remain separate gates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant